Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

using sn.exe (strong naming tool) in a Windows CMD script and supplying the password

$
0
0

Hi,

I need to call sn.exe (twice) as shown below:

"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\sn.exe" -R MyInterop.dll My.pfx
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\NETFX 4.0 Tools\sn.exe" -R MyInterop.dll My.pfx

This is part of an automated build (outside of TFS) using a good old fashion CMD script.

Calling the sn.exe is breaking the automation because sn.exe asks for the password of the pfx file.
I saw someone suggest:
echo ThePassword|sn.exe -R MyInterop.dll My.pfx but this does not work because when you issue a subsequent "sn.exe -V", it is still delay-signed but when you type the password on the keyboard, then the "sn.exe -V" says the dll is valid.

Thanks in advance.


Anthony LaMark



Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>