Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL

后端 未结 1 781
灰色年华
灰色年华 2020-11-30 03:20

I\'ve created a .NET assembly for COM interop and it is working well on my development machine. I\'m currently trying to figure out how to deploy the DLL to a target machin

1条回答
  •  抹茶落季
    2020-11-30 04:06

    Gacutil.exe won't be available on the target machine. Not a problem, MSI can get the job done. Right-click "File System on Target Machine", Add, GAC. Right-click that added folder, Add, Project Output. That ensures the assembly is gac-ed.

    It can also register the assembly like Regasm.exe does. Set the Register property of the project output reference to vsdrpCOM.

    0 讨论(0)
提交回复
热议问题