05-07-2015 07:19 AM
Hi,
I am programming a C# application with the .NET 2.0 Framework (.NET 2.0 is a requirement for compatibility).
I want to use funcitonalities of a LabView VI, so I built a .NET Interop Assembly and reference it in my Visual Studio 2012 C# project.
Visual Studio doesn't accept the namespace of the reference and I get this build error:
So the build result has a dependency on mscorlib assembly from the .NET 4.0 Framework....how can I configure Labview to build an interop assembly which targets the .NET 2.0 Framework?
Thank You.
Solved! Go to Solution.
05-08-2015 04:11 AM - edited 05-08-2015 04:12 AM
Hi Simorgh,
You can find the instructions to make LabVIEW generate .NET 2.0 Interop Assemblies in the following KB:
Configuring LabVIEW to Generate .NET 2.0 Interop Assemblies -
http://digital.ni.com/public.nsf/allkb/645374D70C04B47386257CCB0065B8B4?OpenDocument
I hope this helps.
Regards,
Maha
05-20-2015 10:02 AM
Thank You Maha!
It works.