2

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.

Franz Payer
  • 4,069
  • 15
  • 53
  • 77

1 Answers1

1

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

casablanca
  • 69,683
  • 7
  • 133
  • 150
  • Now the filestructure that it points to refers to my pdb file inside my release folder, not much better than the one in the debug folder. – Franz Payer Jan 23 '11 at 03:46
  • @DazSlayer: Did you change Debug Info to None? That should eliminate the PDB entirely. – casablanca Jan 23 '11 at 03:57