Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to use sn.exe -Vr

From the MSDN help, it says the -Vr option is:

Registers assembly for verification skipping.

My question is when the -Vr is used, will it only change the assembly file itself or it will change the system registry as well. This matters whether I should issue this command in the development machine or in the final deployed machine.

like image 260
Bin Chen Avatar asked Oct 16 '25 13:10

Bin Chen


1 Answers

sn -Vr creates an entry in the registry on the local machine. It does not modify the assembly. You must run sn -Vr locally on every machine on which you wish to skip verification of the target assembly's strong name.

Since you mention that your concern is for a test machine, you may want to keep in mind that at least some of your test runs really ought to be run against the "as shipped" state of the application, which would include the final signature for assemblies. While I understand that key management concerns might preclude applying the final signature to, say, automated builds, you're eventually going to need to test using fully signed assemblies and no verification skipping if you want to emulate the eventual execution environment.

like image 141
Nicole Calinoiu Avatar answered Oct 19 '25 03:10

Nicole Calinoiu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!