Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.