How to run the .exe file alone?

chairmanPC

New member
Joined
Apr 19, 2021
Messages
2
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?
 

Skydiver

Staff member
Joined
Apr 6, 2019
Messages
2,994
Location
Chesapeake, VA
Programming Experience
10+
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.
 
Top Bottom