Hello,
When trying to use DI with [FromServices], it fails with the following build error:
Error Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.AspNetCore.Mvc.Core, Version=3.1.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'
at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
...................
at MakeFunctionJson.FunctionJsonConverter.TryGenerateFunctionJsons()
at MakeFunctionJson.FunctionJsonConverter.TryRun()
Error generating functions metadata
I have used:
Microsoft.NET.Sdk.Functions" Version="3.0.13" and "Microsoft.Azure.Functions.Extensions" Version="1.1.0".
Looks like a few people have bumped into that one: https://stackoverflow.com/questions/64185565/failed-to-resolve-assembly-microsoft-aspnetcore-mvc-core-version-3-1-0-0-when, but there is no official workaround for this.
I haven't seen any response/solution from Microsoft. Is there an incompatibility between libs, what is the combination that I should use?
If this method injection doesn't work, can you please tell me what other alternatives do I have?
Thank you!