how to use sn.exe -Vr

后端 未结 2 661
日久生厌
日久生厌 2020-12-17 06:02

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

相关标签:
2条回答
  • 2020-12-17 06:56

    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.

    0 讨论(0)
  • 2020-12-17 07:04

    Neither. You shouldn't skip verification on your deployment version.

    0 讨论(0)
提交回复
热议问题