I am using Visual Studio 2022 to upgrade my ASP.NET MVC project from .net4.8 to .net8.0 using Upgrade Assistance. On trying to upgrade application throws build error with below message.
Error Message:- “Package ‘Microsoft.AspNet.Identity.Core 2.2.4’ 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.”
Could anyone guide me on how to fix this issue.
1