Skip to content

No IL Verification #7

Description

@tecfield

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions