📜  在 .NET Core 中发布单个 EXE 文件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:52.846000             🧑  作者: Mango

代码示例1
// self contain publish
dotnet publish -r win-x64 -c Release --self-contained
// publish in signle file
dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true
 // publish self contain single file and triming for small size
  dotnet publish -r win-x64 -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true