Steps to create strong named assembly
Step 1 : Run visual studio command prompt and go to directory where your DLL located.For Example my DLL located in D:/hiren/Test.dll
Step 2 : Now create il file using below command.
D:/hiren> ildasm /all /out=Test.il Test.dll
(this command generate code library)
Step 3 : Generate new Key for sign your project.
D:/hiren> sn -k mykey.snk
Step 4 : Now sign your library using ilasm command.
D:/hiren> ilasm /dll /key=mykey.snk Test.il
so after this step your assembly contains strong name and signed.
Jjust add reference this new assembly in your project and compile project its running now.
Comments
Post a Comment