SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to protect wsp file so no one can read my source code. When we change wsp file extension from wsp to zip, it gives all dll file and this dll can be extracted from .net reflector and get all source code. Is there any way to protect my code ?

share|improve this question
i probably presume that your selling the wsp to add onto sharepoint? – ali Sharepoint Apr 16 '13 at 7:59
up vote 5 down vote accepted

If you don't want other people to be able to Reverse Engineer the source code to DLLs you're giving them, then you should obfuscate the DLL. See .Net Obfuscation for some suggestions.

But before going in that direction I have a couple of comments:

  1. The only people who can get the DLL is the people with access to WSP (or the farm where it's installed). Not the people just browsing the SharePoint sites.

  2. A lot of SharePoint installations (hopefully all) may reject your product if they aren't able to inspect the code.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.