Question

I programmed a C# program for my friend and when he got it, he opened it with hexedit and was able to see the filepath to the debugging folder on my computer saved on the program. I gave him the exe that was compiled in the debugging folder. Is there anyway to hide the file structure of your programming computer from decompiling software in Visual Studios?

Note: I am not sure if this applies to files that are created when you "publish." I do not want the user to install a program, it is just a 1-file exe that does not need to be installed. I need an answer that does not involve publishing the project.

Was it helpful?

Solution

Use the release configuration instead of debug, and set Debug Info to None in your project settings. See these articles for more information:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top