Switch Hardware and Software

cancel
Showing results for 
Search instead for 
Did you mean: 

Using MS Fakes with NI-SWITCH

I have a project that references the NationalInstruments.ModularInstruments.NISwitch.Fx45, Version=19.0.0.49152 DLL and it runs fine. I want to write a unit test for this project using MS Fakes. I've successfully done this for NI-DMM but for the NI-SWITCH DLL above I'm getting this error message:

 

Error	CS1705	Assembly 'NationalInstruments.ModularInstruments.NISwitch.Fx45' with identity 'NationalInstruments.ModularInstruments.NISwitch.Fx45, Version=19.0.0.49152, Culture=neutral, PublicKeyToken=4febd62461bf11a4' uses 'NationalInstruments.Common, Version=17.5.40.49153, Culture=neutral, PublicKeyToken=dc6ad606294fc298' which has a higher version than referenced assembly 'NationalInstruments.Common' with identity 'NationalInstruments.Common, Version=15.1.40.49152, Culture=neutral, PublicKeyToken=dc6ad606294fc298'

 

I don't have a reference to NationalInstruments.Common in my project, so I'm not sure where this is being referenced from or how to change it. Any ideas?

0 Kudos
Message 1 of 1
(2,518 Views)