azure-functions-host icon indicating copy to clipboard operation
azure-functions-host copied to clipboard

Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.AspNetCore.Mvc.Core, Version=8.0.0.0

Open AisseMTT opened this issue 4 months ago • 0 comments

What version of .NET does your existing project use?

.NET 6

What version of .NET are you attempting to target?

.NET 8

Description

I followed instructions to migrate my function app from .NET6 to .NET8 by setting <TargetFramework>net8.0</TargetFramework> <AzureFunctionsVersion>v4</AzureFunctionsVersion>

upgraded to <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="4.5.0" /> in my csproj file.

In my local.settings.json file I included these three settings: "FUNCTIONS_WORKER_RUNTIME": "dotnet", "FUNCTIONS_EXTENSION_VERSION": "~4", "FUNCTIONS_INPROC_NET8_ENABLED": "1",

When I build my solution however, I am getting the above error: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.AspNetCore.Mvc.Core, Version=8.0.0.0

Project configuration and dependencies

Image

Link to a repository that reproduces the issue

No response

AisseMTT avatar Oct 17 '24 19:10 AisseMTT