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