Compile to a stand-alone executable (.exe) in Visual Studio

前端 未结 7 1744
囚心锁ツ
囚心锁ツ 2020-11-30 04:36

how can I make a stand-alone exe in Visual Studio. Its just a simple Console application that I think users would not like to install a tiny Console application. I compiled

相关标签:
7条回答
  • 2020-11-30 05:28

    I agree with @Marlon. When you compile your C# project with the Release configuration, you will find into the "bin/Release" folder of your project the executable of your application. This SHOULD work for a simple application.

    But, if your application have any dependencies on some external dll, I suggest you to create a SetupProject with VisualStudio. Doing so, the project wizard will find all dependencies of your application and add them (the librairies) to the installation folder. Finally, all you will have to do is run the setup on the users computer and install your software.

    0 讨论(0)
提交回复
热议问题