In LabVIEW, .NET client applications are LabVIEW projects and VIs that create and manipulate objects defined in .NET assemblies. When an application uses a .NET object, LabVIEW employs a set of default behaviors to determine which version of a particular .NET assembly to reference and which version of the Common Language Runtime (CLR) loads that assembly. However, you can create .NET configuration files to override the default ways that LabVIEW loads and interacts with .NET objects for a specific project or for all projects. You must use a configuration file for each of the following tasks:
A .NET configuration file must meet the following requirements:
Note��National Instruments strongly recommends that you use .NET objects only in VIs that are members of a LabVIEW project. VIs that are not part of a project can reference only the LabVIEW.exe.config file located in the same directory as LabVIEW.exe. |
When you build a stand-alone application from a LabVIEW project that uses a .NET configuration file, the resulting application also requires a copy of the configuration file. To meet the configuration file requirements, the configuration file for the stand-alone application must reflect the name of the application, and the two files must be located in the same directory.
Note��Refer to Distributing .NET Assemblies with .NET Client Applications for more information about distributing configuration files. |