I am attempting to upgrade an ASP.NET Core 3.1 project to .NET 5.0. I am getting warning messages like this:
Warning NU1701 Package 'Microsoft.AspNet.WebApi.Core 5.2.7' 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' instead of the project target framework 'net5.0'. This package may not be fully compatible with your project.
I have ensured that the Microsoft.AspNet.WebApi packages are most recent but it doesn't seem to have helped at all. **Edit:**and have since removed it; however I am still seeing warnings about this package. This is the current list of dependencies for the project:
This version of the .NET is required for Entity Framework Core to work properly and I would like the whole project to be upgraded
How do I resolve this problem?
AspNetcore
in their name. What you used is theCore
package ofAspNet.WebApi
– Panagiotis Kanavos