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

后端 未结 10 2108
盖世英雄少女心
盖世英雄少女心 2020-12-08 02:40

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

I do like this c:\\ regasm.exe

It gives regasm is n

10条回答
  •  青春惊慌失措
    2020-12-08 02:48

    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

提交回复
热议问题