2

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).

VividD
  • 10,456
  • 6
  • 64
  • 111
Danra
  • 9,546
  • 5
  • 59
  • 117

1 Answers1

2

tlbexp is still available in VS2010 here:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\TlbExp.exe
Squirrel
  • 1,355
  • 2
  • 16
  • 25
  • Should be used in a post-build event to answer the need of allowing it to be imported from another project, so that building a solution will work properly. – Danra Sep 27 '11 at 18:26