.Net Core 打包单体文件,不需要安装环境命令

linux

dotnet publish -r linux-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true

windows

dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true

 

MSDN

https://docs.microsoft.com/zh-cn/dotnet/core/tools/dotnet-publish

posted @ 2020-03-17 09:21  Richfiter  阅读(1001)  评论(0编辑  收藏  举报