Bruce Armstrong’s Blog

Almostly always PowerBuilder, almost all the time…

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

leave a comment »

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

Written by brucearmstrong

February 19, 2008 at 6:05 pm

Posted in PowerBuilder

Leave a Reply