Skip to content

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

@gcasatifox

Description

@gcasatifox

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

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

This is the nuget packages section in .csproj of my function:
Image

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

This is the .csproj of the dummy project:
Image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions