dotnet publish

**.csproj中,添加 PublishSingleFile的配置节点 ,如下所示

<PropertyGroup>
  <!--打包为单个文件-->
  <PublishSingleFile>true</PublishSingleFile>
</PropertyGroup>
dotnet publish -r win-x64 -c Release --self-contained false
dotnet publish -r win-x64 -c Release /p:PublishTrimmed=true