Generating .NET Core Console App .exe in Visual Studio 2017

蹲街弑〆低调 提交于 2019-12-06 07:16:57

In fact .NET Core by default generates only dll files that can be run with dotnet:

dotnet myapp.dll

If you want to publish the app as a self-contained exe, you have to right-click the project in Solution Explorer, select Publish and then choose the self-contained option and either win-x86 or win-x64. This will generate a platform specific, architecture specific exe.

Check out this blogpost that goes into more detail about this process.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!