|Download Help (Windows Only)|
The .NET Adapter uses the .NET Common Language Runtime (CLR) version 4.0 to call assemblies. The TestStand Sequence Editor and the example .NET user interfaces target .NET 4.0.
By default, an application that uses the .NET CLR 4.0 cannot load an assembly written in C++/CLI and built against an earlier .NET Framework version. However, you can create an application configuration file to direct the .NET framework to allow an application to load such an assembly. Place the application configuration file in the same directory as the executable and use a filename with the same name as the executable and append a .config extension.
|Note An application configuration file is needed only for C++/CLI assemblies that are built against earlier versions of the .NET CLR. Assemblies created in C# or VB.NET, for example, can be loaded by default, even if the assemblies are built against an earlier version of the .NET CLR.|
For example, to specify that the sequence editor can load legacy C++/CLI assemblies, create in the <TestStand>\Bin directory a file named seqedit.exe.config that contains the following information:
<supportedRuntime version="v4.0" />
When you set the useLegacyV2RuntimeActivationPolicy="true" attribute to true, you force an application that uses the .NET CLR 4.0 to load all legacy assemblies in the .NET CLR 4.0, including legacy C++/CLI assemblies, but you also disable the ability to run multiple versions of the .NET CLR in-process and side-by-side. Refer to Microsoft MSDN documentation for more information about using this configuration option.