How can C# use a legacy DLL simply without registration(regsvr32)

前端 未结 5 1175
醉话见心
醉话见心 2021-01-02 14:15

Situation
I run a build system that executes many builds for many project. To avoid one build impacting another we lock down the build user to only its

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-02 15:00

    There's a walkthrough on registration-free COM here:

    http://msdn.microsoft.com/en-us/library/ms973913.aspx

    And excruciating detail here: http://msdn.microsoft.com/en-us/library/aa376414 (the root of that document is actually here: http://msdn.microsoft.com/en-us/library/dd408052 )

    Also, for building in general, you should be able to use Tlbimp or tlbexp to create a TLB file that you can use for building, assuming the point of registering is just to be able to compile successfully, and not to run specific tests.

提交回复
热议问题