Azure Functions - Can't Be Invoked From Azure WebJobs SDK


Answer :

for some reason, had to go with .NET Standard 2.0 instead of .NET 461, which I was previously using, along the tutorial suggestion.

It seems that when you create azure function initial, your function is .NET 461 and for some reason, you change it to .NET Standard 2.0.

However, when your function is .NET Standard 2.0, your runtime version should be set to beta.

So add AzureFunctionsVersion in your .csproj, because the default .NET 461 runtime is 1 and when you change to .NET core, you need to change the runtime to "beta" manually.

You could refer to the following code:

<PropertyGroup>     <TargetFramework>netstandard2.0</TargetFramework>     <AzureFunctionsVersion>v2</AzureFunctionsVersion>   </PropertyGroup> 

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer