1 最普通的发布

dotnet publish -r win-x64 -c Release -o ./bin/output
Net Core Winform打包单体应用

2 打包,包含框架

dotnet publish -r win-x64 -c Release -o ./bin/single /p:PublishSingleFile=true
Net Core Winform打包单体应用

3 打包,削减无用的文件(不适合winform之类的程序)

dotnet publish -r win-x64 -c Release -o ./bin/single /p:PublishSingleFile=true /p:PublishTrimmed=true
Net Core Winform打包单体应用

参考文章 https://baijiahao.baidu.com/s?id=1671694782936042392&wfr=spider&for=pc

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2021-09-06
  • 2022-01-02
  • 2021-05-16
  • 2021-09-10
  • 2022-12-23
猜你喜欢
  • 2022-02-15
  • 2021-11-23
  • 2021-06-02
  • 2021-09-06
  • 2021-04-14
  • 2021-12-24
相关资源
相似解决方案