LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

building a .net 2.0 assembly with labview 2014

Solved!
Go to solution

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:

 

Unbenannt.PNG

 

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.

0 Kudos
Message 1 of 3
(3,221 Views)
Solution
Accepted by topic author Simorgh

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

Message 2 of 3
(3,198 Views)

Thank You Maha!

It works.

0 Kudos
Message 3 of 3
(3,129 Views)