-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
What does this mean and how can it be resolved properly? Package 'Microsoft.AspNet.Mvc 5.2.8' was restored using '...' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project. #59220
Comments
You have a reference to an old ASP.NET dll (.NET Framework) - please share a full repro. What does this have to do with EF Core? |
The problem has been there since the very first time I updated packages. Perhaps my project file may give indications: net8.0 enable enable aspnet-IssWeb-96ac3037-0def-4d49-b7a7-f3bd94d2fc41 all runtime; build; native; contentfiles; analyzers; buildtransitive |
Please guide me through updating the "old.dll" you mentioned to a .Net 8 MVC web application-compatible one. |
You need to format you project file as code, no one can read it here. |
|
Moving to ASP.NET, since this is one of their packages and is not something that EF depends on. |
Why are you trying to use a package for .NET Framework (Microsoft.AspNet.Mvc) in an ASP.NET Core project? |
> Why are you trying to use a package for .NET Framework (Microsoft.AspNet.Mvc) in an ASP.NET Core project? Thank you very much for your attention to my query. I know that queries from newbies like me can be nerve-tingling. Forgive me. The package Microsoft.AspNet.MVC version 5.3.0 was already installed when I generated the application from the start in Visual Studio Community 2022. The first Build message was: 1>C:\Users\myyan\source\repos\IssWeb\IssWeb\IssWeb.csproj : warning NU1701: Package 'Microsoft.AspNet.Mvc 5.3.0' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project. Seeing this message, I wanted to see if a lower version would work. So, I installed version 5.2.8 of the package, but the problem persisted. From your last question, I can infer that the package is not a .Net or .NetCore package. Does it mean I can safely remove it from the packages? |
If you don't know why it is there, then I suggest removing it and seeing it the problem goes away and the project compiles successfully. |
Thanks always for the attention. I removed the package (Microsoft.AspNet.Mvc 5.2.8) and my app was stripped of its _Layout formatting. It now displays everything inline, no graphics. |
Thank you for filing this issue. In order for us to investigate this issue, please provide a minimal repro project that illustrates the problem without unnecessary code. Please share with us in a public GitHub repo because we cannot open ZIP attachments, and don't include any confidential content. |
What does this mean and how can it be resolved properly?
Package 'Microsoft.AspNet.Mvc 5.2.8' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1' instead of the project target framework 'net8.0'. This package may not be fully compatible with your project.
EF Core version:
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 8.0
Operating system:
IDE: Visual Studio 2022 17.12.1
This is not a coding issue.
The text was updated successfully, but these errors were encountered: