Access a custom .NET DLL in VBScript

前端 未结 5 1051
耶瑟儿~
耶瑟儿~ 2020-12-14 13:09

I wrote a DLL in .NET and I want to access it in VBScript. I don\'t want to add it to the assembly directory.

Is there a way to point too the DLL and create an inst

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-14 13:34

    You can register that .NET dll with regasm utility by specifying /codebase parameter. This parameter is not encouraged to use with unsigned assemblies but it works when you can not put your assembly into GAC.

    regasm your.dll /codebase
    

    Please note that you should not change your .dll's path after this operation since it inserts this path into the Windows registry.

提交回复
热议问题