Building an COM-interop enabled project without re

2019-07-15 19:55发布

In Visual Studio 2010, I'm trying to build an COM-interop enabled C# project without registering it during build, but I DO require the assembly's typelibrary (.tlb) file, so I can import it from another C++ project in the solution.

I haven't found a way of doing this - there once upon a time was a tlbexp.exe tool, but it was deprecated in favor of regasm.exe /tlb (which unlike tlbexp.exe, registers it).

1条回答
女痞
2楼-- · 2019-07-15 20:13

tlbexp is still available in VS2010 here:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\TlbExp.exe
查看更多
登录 后发表回答