Search code examples
c#visual-studio-2015sdkmsbuildildasm

Could not find ildasm.exe


I recently upgraded to VS 2017 and uninstalled the previous VS 2015.

However when I try and build and compile my project I keep getting and error:

Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe

The project uses Unmanaged Exports for C# - https://www.nuget.org/packages/UnmanagedExports

I cannot understand why this message comes up and googling has showed nothing. I have made sure that the target framework is the same >> 4.5.2. But nothing will build!!

I could only find the following directories though:

C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools

Please help, thanks


Solution

  • Based on this issue: https://github.com/nefarius/ViGEm/issues/29

    You should reinstall VS2017. Uninstall all of your VS15/17 versions and install it again with the VS17 installer.