My .Netcore 2.0 project can target net471
.
But when I upgraded to .NET 2.1, I can't retarget net471
or net472
Can I retarget in the latest version of .the NET core?
Severity Code Description Project File Line Suppression State
Error NU1202 Package Microsoft.AspNetCore.App 2.1.0 is not compatible with net471 (.NETFramework,Version=v4.7.1). Package Microsoft.AspNetCore.App 2.1.0 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1)
and
Severity Code Description Project File Line Suppression State
Error NU1202 Package Microsoft.AspNetCore.App 2.1.0 is not compatible with net472 (.NETFramework,Version=v4.7.2). Package Microsoft.AspNetCore.App 2.1.0 supports: netcoreapp2.1 (.NETCoreApp,Version=v2.1)
AspNetCore.App
is a metapackage targeting .net core 2.1. It is used so we dont have to reference dozens of smaller ASP.NET Core assemblies. If you want to retarget to .NET Framework you have to REMOVEAspNetCore.App
and add the single packages which you need, i.e.Microsoft.AspNetCore.Mvc
– Fromm.AspNetCore.All
(or.AspNetCore.All
) package with these references as well as change the target platform in the csproj – Fromm