How to run regasm.exe from command line other than Visual Studio command prompt?


I want to run regasm.exe from cmd. which is available in c:\windows\\framework\2.057

I do like this c:\ regasm.exe

It gives regasm is not recognized as internal or external command.

So I understood that I need to set the path for regasm.exe in environment variable.

For which variable do I need to set the path to run regasm as described above?

1/7/2014 12:28:07 PM

Accepted Answer

In command prompt:

SET PATH = "%PATH%;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727"
12/8/2016 10:28:30 AM

Like Cheeso said:

You don't need the directory on your path. You could put it on your path, but you don't NEED to do that. If you are calling regasm rarely, or calling it from a batch file, you may find it is simpler to just invoke regasm via the fully-qualified pathname on the exe, eg:

%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\regasm.exe MyAssembly.dll

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow