[.net] Simple Deployement?

Started by
3 comments, last by BradSnobar 17 years, 10 months ago
Ok, so, I have a DLL that I've created in .NET. I then use this component in another project (as a reference). When I debug my code in the actual app the debugger is able to retrieve the code of my component, and debug through that aswell. How do I stop this? Thanks.
Advertisement
yeah.. just unload the symbols.. or move the related .pdb file from the locations where VS can load it, like curent folder, folders in Path sys var or folder adeded to vs search path.
So, as long as the .pdb isnt included in the deployement debugging wont be available by the 3rd party user?
You should also use the Release build for distribution. Another thing you can do is give it a strong-name to allow installation into the GAC.
Rob Loach [Website] [Projects] [Contact]
There is an attribute that you can use to disable debugging too.
[System.Diagnostics.DebuggerNonUserCode]

This topic is closed to new replies.

Advertisement