none
TlbImp.exe - What .NET framework version should it use in .NET 4.0? RRS feed

  • General discussion

  • Hi,

    I have just upgraded our product to Visual Studio 2010 and .NET 4.0.  This product has a number of C++ COM objects that are referenced from C# code.  We use TlbImp.exe to generate Interop DLLs for the legacy COM objects.  I noticed today that our Interop DLLs use the v2.0 framework, presumably because I was using TlbImp.exe from Windows SDK 7.0A.  I downloaded Windows SDK 7.1, which is supposed to be for .NET 4 and found that TlbImp.exe was still generating assemblies that reference framework 2.0.

    I suppose this is not much of an issue since with .NET 4 we can run both the 4.0 and 2.0 CLRs simultaneously in the same app, but I wonder if there is any performance impact to this.  I presume that there has to be some impact from moving data between CLR engines at runtime.  Is there any plan to update the Windows SDK tools to be truely .NET 4.0 (seems like some were left at 3.5)?

    Thanks,

    Ted Weiler

    Wednesday, June 23, 2010 7:10 PM

All replies