I solved this problem by putting it in a tag:
<TargetFrameworks>netstandard2.0;net462</TargetFrameworks>
<TargetFrameworkIdentifier Condition="'$(_ShortFrameworkIdentifier)'=='net'">.NETFramework</TargetFrameworkIdentifier>
<TargetFrameworkIdentifier Condition="'$(_ShortFrameworkIdentifier)'=='netstandard'">.NETStandard</TargetFrameworkIdentifier>
This allowed me to create a .NET Framework class library that references the main .NET project. Not what I expected from the documentation, as it looks like .netstandard is a new PCL, but it works.
source
share