Replies: 13 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? |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Please guide me through updating the "old.dll" you mentioned to a .Net 8 MVC web application-compatible one. |
Beta Was this translation helpful? Give feedback.
-
You need to format you project file as code, no one can read it here. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Moving to ASP.NET, since this is one of their packages and is not something that EF depends on. |
Beta Was this translation helpful? Give feedback.
-
Why are you trying to use a package for .NET Framework (Microsoft.AspNet.Mvc) in an ASP.NET Core project? |
Beta Was this translation helpful? Give feedback.
-
> 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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
This package (Microsoft.AspNet.Mvc) is not meant to be used with .NET core, it is an old framework package. Converting this to a discussion in case folks from the community want to help out with your specific issue, but in general the contents of that package should now be in the ASP.NET shared framework by default. |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions