I have a simple project in C#. It's a Windows Forms application.
I want to be able to make this into an EXE file to be able to give this out to some of my friends. I am using Visual Studio 2015.
Before you say that there is an application file in the bin/debug
folder, yes, I know that. The thing is that I want to be able to create this into just one file where they won't be able to access the code.
Step6:- Now this is main step to create the step. Open Solution Explorer->Click on 'solution'test'('project)->Add New Project->Select other project types from left window->Select visual studio Installer->Select the setup Wizard-> write your setup name in below(mysetup)->click OK.
Go to Extensions > Manage Extensions > Online > Search, find, download and install Microsoft Visual Studio Installer Projects extension. 2). Add a new Setup Project in your solution > right-click Application Folder > Add > Project Output… > choose the corresponding Project > select Primary output > OK.
Very simple steps:
msbuild.exe ConsoleApp1.sln /t:Build /p:Configuration=Release
dotnet build -c Release
(you may need to configure the project to output EXE)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With