11-20-2022 08:33 PM
It reports the following warning and error in building exe using VS2019,
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2084,5): warning MSB3277: Found conflicts between different versions of "NationalInstruments.Common" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2084,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "NationalInstruments.DAQmx", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
1>CSC : error CS1705: Assembly 'NationalInstruments.DAQmx' with identity 'NationalInstruments.DAQmx, Version=188.8.131.52361, Culture=neutral, PublicKeyToken=4febd62461bf11a4' uses 'NationalInstruments.Common, Version=184.108.40.206152, Culture=neutral, PublicKeyToken=dc6ad606294fc298' which has a higher version than referenced assembly 'NationalInstruments.Common' with identity 'NationalInstruments.Common, Version=220.127.116.11152, Culture=neutral, PublicKeyToken=dc6ad606294fc298'
Do I need to download the older versions or there is a way I can change the setting of example Assembly to use the new version?