Joe
Joe

Reputation: 1139

.net 6.0 Compatibility issue with nuget packages

I upgraded my projects from .Net Core 3.1 to .Net 6, and updated all of my Nuget packages, and now my Azure Timer functions no longer work.

I'm trying to run locally from Visual Studio, and I get the below runtime error (see image). Image also shows all of my nuget packages.

enter image description here

Upvotes: 1

Views: 775

Answers (1)

Joe
Joe

Reputation: 1139

in the project file, we need to update the Azure Functions version from v3 to v4.

<PropertyGroup>
  <TargetFramework>net6.0</TargetFramework>
  <AzureFunctionsVersion>v4</AzureFunctionsVersion>
</PropertyGroup>

The properties page doesn't have a setting for this. This needs to be done directly in the project file.

Upvotes: 1

Related Questions