I'm trying to make a asynconus azure function in .net 5 but when it start up i get the following error:
[2020-11-16T10:41:06.023Z] A host error has occurred during startup operation '7cd2e743-b753-46ec-806e-d3b3dec14894'. [2020-11-16T10:41:06.026Z] System.Private.CoreLib: Could not load type 'System.Diagnostics.DebuggerStepThroughAttribute' from assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Value cannot be null. (Parameter 'provider')
What i did is:
Async works properly in 3.1 any idea how to resolve this issue?
Azure functions is currently not supported with .Net 5. Microsoft plans to release a preview at end of 2020.
So you have to use .Net Core 3.1.
// Edit
A .NET5 compatible Azure Functions .NET Worker is now released as stable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With