.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