you probably need to upgrade your nuget packages to versions compatible with net 6. for example if you are using FluentValidation
Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ActionConstraintCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, upgrade to .Net 6
Chittoor Vibhakaran, Harish
0
Reputation points
Could not load type 'Microsoft.AspNetCore.Mvc.Internal.ActionConstraintCache' from assembly 'Microsoft.AspNetCore.Mvc.Core, Version=6.0.0.0, Culture=neutral,
Getting this error while upgrade to .net 6.
Project upgrading from .Netcoreapp2.2 to .Net 6
Let me know to the issue
Developer technologies ASP.NET ASP.NET Core
4,815 questions
Developer technologies Visual Studio Debugging
1,102 questions
Developer technologies C#
11,570 questions
1 answer
Sort by: Most helpful
-
Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
2023-07-13T15:12:45.3766667+00:00