Yeah! Looks like I found the answer in Visual Studio.
Instead of creating a Class Library (Package) project (which might be tempted by the bright blue icon), just create a regular PCL:

When prompted for the platforms you want to target, simply enable ASP.NET Core 5.0 as one of them:

Then Visual Studio will automatically generate the csproj and project.json files for you, and you can live happily ever after not having (God forbid) write your own csproj file.
Detailed instructions can be found here in the CoreFX repository.
James ko
source share