.Net core webapi2.1如何生成exe可执行文件

注意:3.0及以上版本可能不适用,没试过。
转载于:原文

找到项目根路径,能看到bin这个文件这里,在上面使用cmd打开,就能直接到它的根目录下面了,
输入:dotnet publish -c Release -r win-x64

dotnet publish:发布
-c: Release 在bin下面创建Release这个文件夹
-r win-x64:是dotnet build --runtime win-x64的缩写,生成exe文件的命令,这里的win-x64貌似只是一个文件夹的名字。具体暂不清楚,反正就这么用。

.Net core webapi2.1生成exe可执行文件
.Net core webapi2.1生成exe可执行文件

相关文章:

  • 2022-12-23
  • 2021-08-08
  • 2021-12-18
  • 2022-01-16
  • 2021-06-16
  • 2022-01-11
  • 2021-09-17
  • 2021-11-19
猜你喜欢
  • 2021-12-06
  • 2021-09-11
  • 2021-12-24
  • 2022-01-21
  • 2022-01-29
  • 2023-03-27
相关资源
相似解决方案