.Net5 发布部署
//默认
dotnet publish
//说明
dotnet publish "解决方案/项目的路径" -c "发布关键字" -r "运行平台" -o "发布输出的路径" --self-contained "是否包含运行时的组件"
//例如
dotnet publish D:\ProjectCode\XXX.WebApi.csproj -c release -r win-x64 -o D:\ProjectCode\Release\XXX.WebApi --self-contained false
//某参数说明
-c // 发布版本 可选 Debug Release
-r // 运行平台 常用 win-64 linux-64