My program needs to call ILASM
, but it keeps moving on me. Is there a registry setting or some other value that my program can read so I don't need to hard code the path?
From the SDK Microsoft.Build.Utilities namespace, the ToolLocationHelper class can be used like so:
using Microsoft.Build.Utilities;
// Use ToolLocationHelper to find ILASM.EXE in the Framework directory
ToolLocationHelper.GetPathToDotNetFrameworkFile("ILAsm.exe", TargetDotNetFrameworkVersion.VersionLatest);
Taken from MSDN sample.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With