ILSupport icon indicating copy to clipboard operation
ILSupport copied to clipboard

No IL Verification

Open tecfield opened this issue 8 years ago • 1 comments

If the IL code is messed up then this tool will still compile the code which can be troublesome. In order to prevent this, PEVerify needs to be run after it is done. Since there is no code for this fix and more like a preparation, I did not create a pull request. I suggest to add another step to project file update and add the following to <Target Name="AfterBuild">

<Exec Command="%comspec% /k &quot;&quot;%VS140COMNTOOLS%VSDevCmd.bat&quot; &amp; &quot;peverify.exe&quot; \IL &quot;$(TargetPath)&quot;&quot;" />

What this does, it runs VSDevCmd.bat to set environment variables for VS tools and then runs PEVerify to verify the IL being generated. It will add errors to VS error windows if there is something wrone. I found it very useful.

tecfield avatar Feb 01 '17 16:02 tecfield

ILVerify replaces PEVerify, and is apparently managed and cross platform code.

Someone needs to find a way to reliably retrieve an executable. A nuget package containing it would be ideal. Based on the README it isn't clear if one exists.

Entomy avatar Dec 22 '19 21:12 Entomy