This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Cannot add reference to TI USB Serial Adapter API

Hi Folks,

I am trying to work with the TI USB Adapter in a VB.NET project. I am working in Visual Studio 2017 on a 64-bit MS Windows PC. I note in the sample C# project provided by TI that a reference is added to an Extension Assembly (Texas Instruments USB Serial Adapter API v2.0.88.23905) and the build settings target 32-bit (x86).

I need to be able to run my application on 64-bit but leaving that aside for now I have set my VB.NET project to target x86 CPU also.

I am trying to add a reference, just as in the C# sample, to my VB.NET project so that I can use the SAA2 DLL. However, in my VB.NET project when I attempt to add the reference, nothing from TI shows up under Assemblies. Instead I have tried looking under COM and note there is a TI type library named (TI USB Serial Adapter API Type Library v2). So I try to add this, but am presented with the following error message:

A reference to 'TI USB Serial Adapter API Type Library v2' could not be added. The ActiveX type library 'C:\Program Files (x86)\Texas Instruments USB Serial Adapter API\Bin\TIDP.SAA2.tlb' was exported from a .NET assembly and cannot be added as a reference.
Add a reference to the .NET assembly instead.

I am unsure exactly what this means in this case as, as just explained there does not appear to be any .NET assembly listed, as such I do not know how I should proceed.

Please tell me how I can add a reference to a VB.NET project while developing on a 64-bit PC and preferably also building to 64-bit.

Thanks, T

  • Listing the contents of the GAC on this PC I can see that the DLL is listed there:

    "TIDP.SAA2, Version=2.0.7.17546, Culture=neutral, PublicKeyToken=4ce2ce38201aeb82, processorArchitecture=MSIL"
  • Seems I needed to specifically add the path to the reference under the project settings before it shows under Extensions in the Add References dialog

    Still unsure as to the architecture of the DLL - It is installed by the TI installer into "C:/Program Files(x86)/" by default. I'm unsure if this means that the DLL is 32-bit or not though. If so, will I only be able to target 32-bit platforms with projects that use it?

    Thanks T