Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TlbImp.exe in Visual Studio 2012

Tags:

.net

interop

I was looking to use TlbImp.exe to create some dlls for a Excel Library 11.0. Looking at the docs I should expect to find it in the SDK bin, something like:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK\v3.5\Bin

But when I go there it is empty. If i do a search in Windows Explorer i get the following:

enter image description here

So my question is whether or not, TlbImp.exe is still the way to go or has it been further integrated into Visual 2012?

If it is still the way to go, which version of tool should I be using? Does it matter with regard to which framework the resulting .dll will be expected to run on?

like image 875
rism Avatar asked Sep 24 '13 03:09

rism


People also ask

Where can I find Tlbimp exe?

Navigate to C:\Program Files\Microsoft SDKs\Windows\vx. x\Bin in which the earlier . NET Framework version of TlbImp.exe is installed.

What is Tlbimp exe?

The output of Tlbimp.exe is a binary file (an assembly) that contains runtime metadata for the types defined within the original type library. You can examine this file with tools such as Ildasm.exe. This tool is automatically installed with Visual Studio.

How do I create an assembly Interop?

There are two ways to generate a primary interop assembly: Using the Type Library Importer (Tlbimp.exe) provided by the Windows SDK. The most straightforward way to produce primary interop assemblies is to use the Tlbimp.exe (Type Library Importer).


1 Answers

Looking at the docs I should expect to find it in the SDK bin, something like:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\SDK\v3.5\Bin

That's why I tried to look on it in every foder, guess what? I've found it!

It is here!

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin

The real problem is that, I need to install .NET 2.0 and .NET 3.0 in order to use and search it.

enter image description here

like image 167
Cary Bondoc Avatar answered Sep 29 '22 16:09

Cary Bondoc