I have a simple Windows Forms project in C#.
I want to be able to turn this into an EXE file to be able to give this out to some of my friends. I am using Visual Studio 2019.
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.
If you want a 100% portable application :
Install the Nuget Package Costura.Fody. It will add all the dependencies directly into the .exe so that there are no separate .dlls or other files apart from it.

Change the output to Release and generate your project (run it or CTRL + B)

Go to your project folder / bin / release and there is the .exe
Profit.
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