How to generate .net core or .net standard csproj file?

Solution 1:

I think what you're looking for is dotnet new specifically using the option --framework netstandard<version> or --framework net6.0 specified in this doc