Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
88 lines (83 sloc) 2.85 KB
.\" lc manual page.
.\" (C) 2009 Carlo Kok
.\" Author:
.\" Carlo Kok (
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
.TH lc "Mono 2.6"
lc \- Mono License Compiler
.B lc -c filename -t targetassembly [-i reference...] [-v] [-o outputpath] [-nologo]
\fIlc\fP tool is a license compiler for Mono. It's used to convert a
licenses.licx file to a resource that can be embedded into an executable.
When using commercial components for .NET they often require a license
resource at runtime to make sure the developer was licensed to use this
control. The most common way of making sure the component was properly
licensed is by using license resources. At compile time the developer
uses the \fIlc\fP tool to convert a licenses.licx file to a
programname.exe.licenses file and embed that as a managed resource
during compilation.
The following options are available:
\fB--complist=filename\fR, \fB-c filename\fR
This option is used to specify the input file, the licenses.licx file
to create a license reesource for. This option is required. The license
compiler will read each line in this file and try to load the types
specified on that line.
\fB--target=assemblyname\fR, \fB-t targetassembly\fR
full assembly name with file extension for the target assembly. The
license compiler uses this as a key when compiling the licenses. It
has to match the assembly the resource will be embedded in. This option
is required.
\fB--load=reference\fR, \fB-i reference\fR
Assembly reference to load before trying to compile a license. This
option is needed for assemblies where the references are not in the
gac. Compilers should pass all references to the license compiler.
\fB--verbose,\fR, \fB-v\fR
Gives more verbose output about the license compiling process.
\fB--help\fR, \fB-h\fR
Displays usage instructions.
\fB--outdir=path\fR, \fB-o path\fR
Target path file the licenses resource. By default the license
compiler emits the resource in the current directory. The filename
will always match the target assembly passed to --target with .licenses
Do not emit the "Mono License Compiler" logo on stdout while compilng.
The format for the license files (licenses.licx) is the following:
# comment
namespace.type, assemblyname
namespace.type, full-assemblyname
All lines starting with a # are ignored. the first form requires
that the assembly was loaded through the --load,-i option but
does not require the full assembly name, only the first part.
The second form requires the full assembly name including locale,
version and publickeytoken.
Mailing lists are listed at the
mono(1), mcs(1)
Jump to Line
Something went wrong with that request. Please try again.