Azure Functions: .NET 7 and .NET 8 local debugging bug on Visual Studio Code.


Developers using Visual Studio Code and .NET 7 or .NET 8 for Azure Functions may encounter a bug that causes an error when debugging locally. The bug is related to the automatic referencing of the "Microsoft.Azure.Functions.Worker.Sdk" version "1.16.x" in the .csproj file. The error message states that a function with the same name already exists. Two workarounds are suggested: rolling back to version 1.15.x of the SDK or setting the property "<FunctionsEnableWorkerIndexing>False</FunctionsEnableWorkerIndexing>" in the .csproj file. The bug has been reported to the Azure Functions team.


Article 16m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time