lc.exe is a resource file generator utility that reads text files containing licensing information and produces a NGWS runtime binary .licenses file that can be embedded in a NGWS runtime binary executable.
lc /TARGET:TargetPE /COMPLIST:filename [/OUTDIR:path] /I:modules
Argument | Description |
---|---|
/TARGET:TargetPE | The executable for which the .licenses file is being generated |
/COMPLIST:filename | The name of a file that contains the list of licensed components to include in the .licenses file.
Each component is referenced using its full name. One component per line |
/I:modules | The list of modules containing the components listed in the complist file. |
/OUTDIR:path | The directory in which to place to the output .licenses file |
If you are using a licensed control MyCompany.Samples.LicControl1 contained in Samples.DLL in an application called HostApp.exe, you create a HostAppLic.txt that contains the following:
MyCompany.Samples.LicControl1, Samples.DLL
You then create the .licenses file using the following command:
Lc /target:HostApp.exe /complist:hostapplic.txt /I:Samples.DLL /outdir:c:\bindir
This will produce a .licenses file called HostApp.exe.licenses.
You then build HostApp.exe including the .licenses file as a resource. For instance if you were building a C# application you would use the following command to build your application:
csc /res:HostApp.exe.licenses /out:HostApp.exe *.cs
NGWS Frameworks and Runtime Resources