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

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

1 Answer 1

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: blog.helloitsliam.com/Lists/Posts/Post.aspx?ID=23 Also here's an msdn article on the subject: msdn.microsoft.com/en-us/library/hh977082(v=vs.107).aspx –  Rafał Saltarski Jan 26 '13 at 10:29

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.