We have an application that makes use of Measurement Studio 8.6 (Windows.Forms UI, Analysis...) and DaqMX.
We recently upgraded to target DaqMX 15.1 so as to be able to use CounterMultiChannelReader for a specific CompactDaq module that requires it.
We end up with the following references:
NationalInstruments.Analysis.Enterprise 8.6.35.465
NationalInstruments.UI 8.6.35.465
NationalInsturments.UI.WindowsForms 8.6.35.465
NationalInstruments.DaqMX 15.1.40.61
The project targets Framework 4.0.
Under visual Studio (2012) this compiles just fine with a warning on the election of NationalInstruments.Common 15.0.40 over 8.9.35:
Unable to resolve conflict between "NationalInstruments.Common, Version=15.0.40.49154, Culture=neutral, PublicKeyToken=dc6ad606294fc298" and "NationalInstruments.Common, Version=8.9.35.302, Culture=neutral, PublicKeyToken=18cbae0f9955702a". Arbitrary choice of "NationalInstruments.Common, Version=15.0.40.49154, Culture=neutral, PublicKeyToken=dc6ad606294fc298"
Under msbuild, however, we get errors:
error BC30009 : a reference to assembly 'NationalInstruments.Common, Version=15.0.40.49154, Culture=neutral, PublicKeyToken=dc6ad606294fc298' containing the implemented interface 'NationalInstruments.ISynchronizeCallbacks' is required.add it to your project.
The closest match I could find on my computer is NationalInstruments.Common 15.1.40.49152 (pukblicKeyToken=dc6ad606294fc298) If I add this reference to the project, I get another error about adding a reference to 8.6.35.419:A reference to assembly NationalInstruments.Common 8.6.35.429 containing base class NationalInstruments.EnumObject is required. Add it to your project.
We target DaqMX 15.1 because it is the last DaqMX version claiming to support Measurement Studio 8.6 and it does work when compiled with VS. I am at a loss... I suspect the problem comes from mixing 3.5 and 4.0 dlls, where the automatic retargeting of NationalInstruments.Common does not work, but then how can DaqMX 15.1 (which seems to target only FW 4.0) claim to support Measurmeent Studio 8.6 (which targets only 3.5) ?