Tuesday, February 19, 2008

How to provide a strong name to a PowerBuilder generated .Net assembly

1. Generate a private key using the strong name tool:

sn.exe -k TeamSybasePrivateKeyFile.snk

2. Use the IL disassembler tool in the .Net SDK to convert the PowerBuilder generated assembly back to IL:

ILDASM.exe TeamSybase.dll /out:TeamSybaseSigned.il

3. Use the IL assembler tool in the .Net runtime to recompile the IL into a signed assembly:

ILASM.exe TeamSybaseSigned.il /dll /key=TeamSybasePrivateKeyFile.snk

4. You can use the strong name tool to verify that the strong name was correctly applied:

sn -v TeamSybaseSigned.dll


Terrie Panama said...

I just needed to say that I found your site via Goolge and I am glad I did. Keep up the good work and I will make sure to bookmark you for when I have more free time away from the books. Thanks again!

Clementine Geisinger said...

Thank you for some other wonderful post. Where else may just anyone get that kind of info in such an ideal way of writing? I have a presentation next week, and I am at the search for such info.