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(IEnumerable1 types)+MoveNext()at System.Collections.Generic.List 1.AddEnumerable(IEnumerable1 enumerable) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at MakeFunctionJson.FunctionJsonConverter.TryGenerateFunctionJsons() at MakeFunctionJson.FunctionJsonConverter.TryRun()`
This also happens when reference project that has ASP.Net Core 3 framework reference
This question has been asked at https://github.com/Azure/azure-functions-vs-build-sdk/issues/339 and has had no response since 7 days ago, anyone with any suggestions/workarounds?
Microsoft.AspNetCore.Mvc.Abstractions
package inMicrosoft.NET.Sdk.Functions
is 2.1.0, so did you install the v3 and use it or just use the default . – George Chen Oct 28 '19 at 8:41