LC Task


For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Wraps LC.exe, which generates a .license file from a .licx file. For more information on LC.exe, see Lc.exe (License Compiler).

The following table describes the paramters for the LC task.

LicenseTargetRequired ITaskItem parameter.

Specifies the executable for which the .licenses files are generated.
NoLogoOptional Boolean parameter.

Suppresses the Microsoft startup banner display.
OutputDirectoryOptional String parameter.

Specifies the directory in which to place the output .licenses files.
OutputLicenseOptional ITaskItem output parameter.

Specifies the name of the .licenses file. If you do not specify a name, the name of the .licx file is used and the .licenses file is placed in the directory that contains the .licx file.
ReferencedAssembliesOptional ITaskItem[] parameter.

Specifies the referenced components to load when generating the .license file.
SdkToolsPathOptional String parameter.

Specifies the path to the SDK tools, such as resgen.exe.
SourcesRequired ITaskItem[] parameter.

Specifies the items that contain licensed components to include in the .licenses file. For more information, see the documentation for the /complist switch in Lc.exe (License Compiler).

In addition to the parameters listed above, this task inherits parameters from the ToolTaskExtension class, which itself inherits from the ToolTask class. For a list of these additional parameters and their descriptions, see ToolTaskExtension Base Class.

The following example uses the LC task to compile licenses.

<Project xmlns="">  
<!-- Item declarations, etc -->  
    <Target Name="CompileLicenses">  

Task Reference