safe Class Library (.dll) source code

ImDaFrEaK

Well-known member
Joined
Jan 7, 2006
Messages
416
Location
California
Programming Experience
5-10
When I build a Class Library and then use it in other projects and an error occurrs within the library; VS will open the library and show me the code and where the error occurred.

I want to make the code within my library's safe from viewing from others. In other words, how do I build a Class Library or .dll and sale or give it to other developers without them seeing the source code? basically keep them from opening or editing it.
 
Debugger will only break into code if code is there, try to temporarily remove or rename that project folder and you will see that only exception displays - no source code.

Still there is nothing stopping anyone to look into the code of the dll library itself with tools unless you obfuscate the code. Search for ".Net obfuscation" for help/software that does this.
 
K, thanks. So in other words the reason I can see the source is b/c VS realizes it was written on this computer and opens it for me? So if I rename the project and or move it that will not happen anymore.
 
Back
Top