Manually Adding or Updating Entries in an .licx File

Measurement Studio 2012 for Visual Studio 2010 Help

Edition Date: August 2012

Part Number: 372636F-01

»View Product Info
Download Help (Windows Only)

See Also


Microsoft .NET Framework language compilers embed Measurement Studio licenses into your assembly every time you build an assembly that references a Measurement Studio licensed class library. The compilers use License Compiler (Lc.exe) to do this. The input to License Compiler is a licenses.licx file that contains a list of licensed types and the assemblies that contain these licensed types. At compile time, License Compiler obtains licenses from Measurement Studio, which the .NET language compiler embeds into the assembly as a resource.

License Compiler uses information in the project .licx file to determine what components require licenses. If you have not installed Measurement Studio Visual Studio-integrated tools, you must manually create and update the .licx file in order to compile your project.

Note: If you have a compile-only license, you typically obtain an .licx file from someone in your organization who has a development license.

Each line in the .licx file contains the licensed class name, the assembly name, the version of the assembly, the culture of the assembly, and the public key token of the assembly. You must update the Version and the PublicKeyToken before you use this information in the licenses.licx file for your application.

To update the Version value and PublicKeyToken for each Measurement Studio assembly, complete the following steps:

  1. Locate the assembly name for each line.
  2. Navigate to the Current folder to locate the assembly. By default, the Current folder installs to Program Files\National Instruments\<MeasurementStudio>\DotNET\Assemblies\Current.
  3. Right-click the assembly, then select Properties.
  4. Select the Version tab.
  5. Manually update the Version in the licenses.licx file to this value.
  6. The PublicKeyToken for the Measurement Studio assemblies that support Visual Studio 2010 is dc6ad606294fc298. Paste this PublicKeyToken value into the licenses.licx file for your project.

Refer to Creating an .licx File Without Visual Studio-Integrated Tools for information on the entries in an .licx file.

See Also

WAS THIS ARTICLE HELPFUL?

Not Helpful