6 .\" Carlo Kok (ck@remobjects.com)
8 .de Sp \" Vertical space (when we can't use .PP)
14 lc \- Mono License Compiler
17 .B lc -c filename -t targetassembly [-i reference...] [-v] [-o outputpath] [-nologo]
19 \fIlc\fP tool is a license compiler for Mono. It's used to convert a
20 licenses.licx file to a resource that can be embedded into an executable.
22 When using commercial components for .NET they often require a license
23 resource at runtime to make sure the developer was licensed to use this
24 control. The most common way of making sure the component was properly
25 licensed is by using license resources. At compile time the developer
26 uses the \fIlc\fP tool to convert a licenses.licx file to a
27 programname.exe.licenses file and embed that as a managed resource
30 The following options are available:
32 \fB--complist=filename\fR, \fB-c filename\fR
33 This option is used to specify the input file, the licenses.licx file
34 to create a license reesource for. This option is required. The license
35 compiler will read each line in this file and try to load the types
36 specified on that line.
38 \fB--target=assemblyname\fR, \fB-t targetassembly\fR
39 full assembly name with file extension for the target assembly. The
40 license compiler uses this as a key when compiling the licenses. It
41 has to match the assembly the resource will be embedded in. This option
44 \fB--load=reference\fR, \fB-i reference\fR
45 Assembly reference to load before trying to compile a license. This
46 option is needed for assemblies where the references are not in the
47 gac. Compilers should pass all references to the license compiler.
49 \fB--verbose,\fR, \fB-v\fR
50 Gives more verbose output about the license compiling process.
52 \fB--help\fR, \fB-h\fR
53 Displays usage instructions.
55 \fB--outdir=path\fR, \fB-o path\fR
56 Target path file the licenses resource. By default the license
57 compiler emits the resource in the current directory. The filename
58 will always match the target assembly passed to --target with .licenses
62 Do not emit the "Mono License Compiler" logo on stdout while compilng.
65 The format for the license files (licenses.licx) is the following:
68 namespace.type, assemblyname
69 namespace.type, full-assemblyname
72 All lines starting with a # are ignored. the first form requires
73 that the assembly was loaded through the --load,-i option but
74 does not require the full assembly name, only the first part.
76 The second form requires the full assembly name including locale,
77 version and publickeytoken.
80 Mailing lists are listed at the
81 http://www.mono-project.com/Mailing_Lists
83 http://www.mono-project.com