How to run the .exe file alone?

chairmanPC

Active member
Joined
Apr 19, 2021
Messages
38
Programming Experience
10+
I use Visual Studio, and when I publish my projects, my all of my programs are all together with other files needed to run the program. If I move the app to another location and try to run it, it won't run, as it's dependent on the files.

Is there a way that when the project is built, only the app itself will be created, so that it can be easily transferred around?
 
If you have dependent loose read-only data files, you might be able to pack them into assemblies as resources.

If you have dependent assemblies, you maybe able to use use ILMerge to pack everything into a single executable.

But the big question is why would you want to pack everything into a single executable? That is so 1980's. People have learned to live with multiple files since then.
 
Back
Top Bottom