After migrating to Azure Functions V3 cannot compile and run project anymore
Steps to reproduce
Create new HTTP Trigger function
Update project and include reference to Microsoft.AspNetCore.App
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
Compile project
Stack Trace
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.Mvc.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
File name: 'Microsoft.AspNetCore.Mvc.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters()
at System.Reflection.RuntimeMethodInfo.GetParameters()
at MakeFunctionJson.MethodInfoExtensions.GetDisabled(MethodInfo method)
at MakeFunctionJson.MethodInfoExtensions.HasUnsuportedAttributes(MethodInfo method, String& error)
at MakeFunctionJson.FunctionJsonConverter.GenerateFunctions(IEnumerable`1 types)+MoveNext()
at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at MakeFunctionJson.FunctionJsonConverter.TryGenerateFunctionJsons()
at MakeFunctionJson.FunctionJsonConverter.TryRun()
This allso happens when reference project that has ASP.Net Core 3 framework reference
@rybkov It's been a week with no response... Have you found a workaround?
I used Develop Azure Functions using .NET Core 3.0 guidelines.
@McKabue no workaround, just waiting :(
Apologies for the delayed response here. We're working on preview tooling updates and will validate your scenarios as part of that.
/cc @soninaren / @brettsam
Is there a timelime of when this can be released? I need to make a decision if i need to downgrade my projects or wait for a fix...
hey @brettsam , any feedback?
It's assigned to the current sprint and I'll be tackling it soon.
I'm getting the same issue except it's complaining about Newtonsoft.Json 12.0.0.0
I'm resolving this issue as a dupe of the first one created (https://github.com/Azure/azure-functions-vs-build-sdk/issues/349). Please follow that issue for the PR and resolution.
Most helpful comment
It's assigned to the current sprint and I'll be tackling it soon.