Azure / Azure/azure-functions-tooling-feed

Azure Functions Core Tools requires your project to reference version 4.5.0 or later of Microsoft.NET.Sdk.Functions

Open
#588 0 comments 0 reactions 0 assignees View on GitHub
Needs: Triage (Functions)
Dominant language
C#
Stars
29
Forks
35
Avg merge
52m
Merged PRs (30d)
2

Description

Hi everyone,

My team has been having trouble debugging an Azure Function for at least a week. I’ll try to describe our case.
We’re still using .NET 6, and we have a function that references version 4.1.1 of Microsoft.NET.Sdk.Functions, which I used to debug with Rider. In the last few days, when I try to debug, this message appears:
![Image](https://github.com/user-attachments/assets/ac4cbcb4-a4e6-4230-96c5-8aaf8e78a2fc)

I tried upgrading the package in my function project as suggested, but the same message continues to appear. So, I upgraded Rider and Azure Toolkit for Rider. I dealt with the problems described in this issue: JetBrains Azure Tools Issue #944, and I overcame them.

Now, I’m using Rider version 2024.2.7 and Azure Toolkit for Rider 4.2.3. This is the Azure Function Core Tools version installed from the Azure Toolkit:
![Image](https://github.com/user-attachments/assets/173f654c-cef4-44c2-8b56-10bb0c0163a5)

This is the nuget packages section in .csproj of my function:
![Image](https://github.com/user-attachments/assets/1a5faea0-f9cc-4f08-925e-eab76601790d)

I tried many times cleaning my project or manually removing the bin folder. The problem continues; it seems like Azure Function Core Tools doesn’t recognize that the package was upgraded in the project.

Finally, I tried to create a new function project from Rider with a dummy function trigger, and in this case, the function starts:
![Image](https://github.com/user-attachments/assets/6914824f-77ff-481d-b87a-12137b1b57dd)

This is the .csproj of the dummy project:
![Image](https://github.com/user-attachments/assets/46d2e216-3914-402a-8f41-1764f7e33043)

Do you have any idea where the problem could be?
Thank you.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the affected function project's .csproj and package references with the working dummy project's .csproj. Reproduce the message using Rider 2024.2.7, Azure Toolkit for Rider 4.2.3, and the installed Azure Functions Core Tools, then determine why the upgraded Microsoft.NET.Sdk.Functions reference is not recognized. Done means the original project starts successfully with the required package version.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
cloud, tooling
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.