The following command performs metadata validation checks and MSIL type safety verification checks for methods implemented in the assembly myAssembly.exe.
peverify myAssembly.exe /md /il
Upon successful completion of the above request, Peverify.exe displays the following message.
All classes and methods in myAssembly.exe Verified
The following command performs metadata validation checks and MSIL type safety verification checks for methods implemented in the assembly myAssembly.exe. The tool displays the time required to perform these checks.
peverify myAssembly.exe /md /il /clock
Upon successful completion of the above request, Peverify.exe displays the following message.
All classes and methods in myAssembly.exe Verified
Timing: Total run 320 msec
MD Val.cycle 40 msec
MD Val.pure 10 msec
IL Ver.cycle 270 msec
IL Ver.pure 230 msec The following command performs metadata validation checks and MSIL type safety verification checks for methods implemented in the assembly myAssembly.exe. Peverify.exe stops, however, when it reaches the maximum error count of 100. The tool also ignores the specified error codes.
peverify myAssembly.exe /break=100 /ignore=0x12345678,0xABCD1234
The following command produces the same result as the above previous example, but specifies the error codes to ignore in the response file ignoreErrors.rsp.
peverify myAssembly.exe /break=100 /ignore@ignoreErrors.rsp
The response file can contain a comma-separated list of error codes.
Alternatively, the response file can be formatted with one error code per line.