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

i am trying to obfuscate my custom web part.

first i created my web part using visual studio 2010. i build the web part it build the web part as .dll in bin folder. i obfuscated the .dll with confuser obfuscator. and i replaced the original dll with obfuscated dll. then i trying to pack the web part.

but visual studio is rebuilding the web part and packing with newly rebuild dll (original ) instead of obfuscated dll.

is there any other way to obfuscate share point 2010 webpart?

share|improve this question
Interesting question. Let me think about it. – SPArchaeologist Jan 24 '13 at 9:27

Instead of rebuilding the project, package it.

Also you can just replace the dlls inside the wsp as if it was a zip file.

share|improve this answer
i try to packit but while i said packit the visual studio rebulding itself and pack with rebulded dll insted of my obfuscated dll – kavalirakesh Jan 25 '13 at 17:37
In that case you can use the post-build events to have visual studio obfuscate your dll after building it and before packaging. This will happen automatically so is very comfortable for the developer. Liam Clear wrote a tutorial on it: Also here's an msdn article on the subject: – Rafał Saltarski Jan 26 '13 at 10:29

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.