thanks especially PJ8 for sending the answer 8 years ago, which still saved me today. My assembly was supposed to go to the GAC, but depended on SQLite-pcl-net, which is not strong since version 1.3.1, although now it depends on the strong name SQLitePCLRaw.bundle_green. So I had to sign SQLite-pcl-net in order to sign my own assembly in other words. I ended up with a cadle-to-grave.bat file, combined with the information in this post and a few other places that I visited today. The βplusesβ are 1. that this byte works at the build location you want to sign 2. shows at least a hint of where the three tools can be located on the dev machine. 3. Shows all steps in order. The βconβ, of course, is that your mileage may vary depending on where ildasm, ilasm and sn are actually located on your particular PC. Anyway, cheers.
REM Create a new, random key pair "c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\NETFX 4.5.1 Tools\sn" -k SQLite-net.snk REM Store the key in the container MySQLiteKeys in the strong name Cryptographic Services Provider (CSP). "c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\NETFX 4.5.1 Tools\sn" -i SQLite-net.snk MySQLiteKeys REM Disassemble to Intermediate Language "c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\NETFX 4.5.1 Tools\ildasm" SQLite-net.dll /out:SQLite-net.il REM Rename original file ren SQLite-net.dll SQLite-net.dll.orig REM Reassemble to a strong-named version "c:\Windows\Microsoft.NET\Framework\v2.0.50727\ilasm" SQLite-net.il /dll /key=SQLite-net.snk /out:SQLite-net.dll REM Verify the assembly "c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\NETFX 4.5.1 Tools\sn" -v SQLite-net.dll REM Deletes MySQLiteKeys from the default CSP "c:\program files (x86)\microsoft sdks\windows\v8.1a\bin\NETFX 4.5.1 Tools\sn" -d MySQLiteKeys REM View results pause
IVSoftware Apr 6 '17 at 22:38 on 2017-04-06 22:38
source share