dotnet build -r win-x64
命令2:
dotnet publish -c Release -r win-x64
-r|--runtime:(window rid或者linux rid) -c|--configuration:{Debug|Release}
详细参考:
https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish?tabs=netcore21
https://docs.microsoft.com/zh-cn/dotnet/core/rid-catalog