Loading .NET Framework 2.0, 3.0, and 3.5 Assemblies in LabVIEW
- Updated2025-03-11
- 2 minute(s) read
Loading .NET Framework 2.0, 3.0, and 3.5 Assemblies in LabVIEW
The .NET Framework 4.0 allows you to load pure managed assemblies built in any version of the .NET Framework and mixed-mode assemblies built in .NET 4.0. Although LabVIEW loads the .NET Common Language Runtime (CLR) 4.0 by default, you can force LabVIEW to use the CLR 4.0 to load .NET mixed-mode assemblies that target the CLR 2.0.
To enable the following objects to load .NET mixed-mode assemblies that target the CLR 2.0, you must use the configuration file described below:
- LabVIEW 2013
- An executable built in LabVIEW 2013
- An executable built outside of LabVIEW that calls into an interop assembly or DLL built in LabVIEW
Complete the following steps to configure LabVIEW to load .NET mixed-mode assemblies that target the CLR 2.0:
- Open a text editor.
- Copy the following text into the text editor: <?xml version ="1.0" encoding="utf-8" ?> <configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0.30319"/> </startup> </configuration>
- Save this new configuration file in the same directory as LabVIEW.exe. Name the file LabVIEW.exe.config.
- Relaunch LabVIEW.
Now LabVIEW can load .NET mixed-mode assemblies that target the CLR 2.0.