Monday, July 13, 2009

Re-sign assemblies if you don't have the source code

So, you have a third party assembly, and want to put it into GAC. (Or maybe into SharePoint, you have just figured that the "bin" folder does not allow your assemblies full trust to resources like registry).

Here are the steps:
1> ildasm /all /out=MyAsm.il MyAsm.dll
2> ilasm /dll /key=Companykey.snk MyAsm.il

2 comments:

Anonymous said...

ildasm /dll is not a valid option...

Unknown said...

ildasm /all is the option, ilasm has the /dll