Azure / azure-functions-dotnet-worker

Azure Functions out-of-process .NET language worker
MIT License
429 stars 183 forks source link

.NET 8 Function using Worker.Extensions.EventGrid 3.4.1 requires .NET Core 3.1 SDK #2181

Open thomasjkok opened 10 months ago

thomasjkok commented 10 months ago

I'm currently working on a project that needs updating from .NET6 to .NET8, where I also need to migrate some functions. The entire process was quite straightforward using the upgrade assistant, but it turned a bit sour when I came to a Function project that uses the EventGrid triggers. This extension seems to have some underlying references or dependencies to .NET Core 3.1, which I would rather not have installed on our building agent.

The error came to light when attempting to build the project using the EventGrid package, with a rather non-descriptive error NU1101: Unable to find package Microsoft.NETCore.Targets

Installing the .NET Core 3.1 SDK locally seems to fix the issue, but this is not a viable workaround in my opinion. Please let me know what additional information I can provide to help!

thomasjkok commented 9 months ago

Any update? Would love to push the new .NET8 functions to production soon, but this package is currently blocking that.

satvu commented 6 months ago

@thomasjkok this should not be a requirement for the extension - do you have a link to a repro that we can investigate?

thomasjkok commented 6 months ago

I understand that it should not be, but for our local dev machines it was. When we sent it through our CI/CD in Azure DevOps it didn’t seem to be a problem anymore. So for now the issue isn’t blocking, even though our dev machines are still having problems.

satvu commented 6 months ago

@thomasjkok Can you provide a repro that we can test ourselves?