Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Basic 2017 build problem - National Instruments.DAQmx targeting AMD64?

Hi--

 

I've developed some software in VB2017 that references NI.DAQmx and runs fine on my dev machine, but when I create an installer via Microsoft Visual Studio Installer Projects, I get an error and warning regarding target platforms and DAQmx (note that the following errors are based on an x86 target and the DAQmx reference set to C:\Windows\Microsoft.NET\assembly\GAC_32\NationalInstruments.DAQmx\v4.0_19.6.45.1__4febd62461bf11a4\NationalInstruments.DAQmx.dll):

 

ERROR: File 'NationalInstruments.DAQmx.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'NationalInstruments.DAQmx.dll' targeting 'x64' is not compatible with the project's target platform 'x86'

 

The error is preventing the build from succeeding.  I've used the DAQmx references from both GAC_32 and GAC_64, I've targeted AnyCPU and x86, but I can't seem to get past this issue.  I have no idea why VS would say that DAQmx is targeting x64 or AMD64 when I'm using the DAQmx in GAC_32.

 

Anyone have any suggestions?

 

Thanks!

0 Kudos
Message 1 of 1
(1,065 Views)