Project targets ‘net6.0’. It cannot be referenced by a project that targets ‘.NETFramework,Version=v6.0’.

C:\Program Files\dotnet\sdk\3.1.302\Microsoft.Common.CurrentVersion.targets(1655,5): error : Project 'MyProject.csproj' targets 'net6.0'. It cannot be referenced by a project that targets '.NETFramework,Version=v6.0'. [c:\MyProject.csproj]
{
"sdk": {
"version": "3.1.302",
"rollForward": "latestPatch",
"allowPrerelease": false
}
}
     "version": "6.0.100",

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store