Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AisseMTT opened this issue Oct 17, 2024 · 2 comments

Comments

@AisseMTT
Copy link

AisseMTT commented Oct 17, 2024

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

@fabiocav fabiocav transferred this issue from Azure/azure-functions-dotnet-worker Oct 18, 2024
@bhagyshricompany bhagyshricompany self-assigned this Oct 29, 2024
@bhagyshricompany
Copy link

bhagyshricompany commented Oct 29, 2024

@AisseMTT Thanks for reporting will check and update.please share config dependency here in notepad or copy here all sdk mention above .Thanks.

@bhagyshricompany
Copy link

Hi @AisseMTT please provide the list of sdk in group .so I can check at my side.Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants