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

后端 未结 10 1995
盖世英雄少女心
盖世英雄少女心 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:50

    By dragging and dropping the dll onto 'regasm' you can register it. You can open two 'Window Explorer' windows. One will contain the dll you wish to register. The 2nd window will be the location of the 'regasm' application. Scroll down in both windows so that you have a view of both the dll and 'regasm'. It helps to reduce the size of the two windows so they are side-by-side. Be sure to drag the dll over the 'regasm' that is labeled 'application'. There are several 'regasm' files but you only want the application.

    0 讨论(0)
  • 2020-12-08 02:51

    In command prompt:

    SET PATH = "%PATH%;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727"
    
    0 讨论(0)
  • 2020-12-08 03:03

    For the 64-bit RegAsm.exe you will need to find it someplace like this:

    c:\Windows\Microsoft.NET\Framework64\version_number_stuff\regasm.exe
    
    0 讨论(0)
  • 2020-12-08 03:04

    I use the following in a batch file:

    path = %path%;C:\Windows\Microsoft.NET\Framework\v2.0.50727
    regasm httpHelper\bin\Debug\httpHelper.dll /tlb:.\httpHelper.tlb /codebase
    pause
    
    0 讨论(0)
提交回复
热议问题