02-17-2011 04:00 AM
Hi all!
I have built an windows form application using Measurement Studio components (v8.9.0.246).
I would like to be able to run the application on a .NET framework 2.0 so I have tried as far as possible to depend on .NET version 2.0.50727.
The installer project successfully installs the application but when I run the program I print the following Exception:
Source=NationalInstruments.Common
Message=Could not load file or assembly 'System.Core, Version=2.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies
It seems that the NI Common-assembly requires .NET 3.5, how can I get rid of this dependency?
(In the Measurement Stuido menu, Add/remove class libraries, i have selected only one out of two "Windows Forms User Interface Control Library")
Best regards, Björn Nilsson
02-17-2011 04:41 AM
Sorry, it should be:
Version=3.5.0.0
02-17-2011 06:16 AM
Case closed.
I had to install MStudio 2005 (containing the .NET 2.0 assemblies) and use them instead as references instead of referring to VS2008 assemblies (nationaInstrument.Common, NationalInstrument.UI, NationalInstrument.UI.WindowsForms).
Found a thread after my initial post: http://forums.ni.com/t5/Measurement-Studio-for-NET/Measurement-studio-8-6-compatible-with-Visual-Stu...