1lc(Mono 2.6)                                                      lc(Mono 2.6)
2
3
4

NAME

6       lc - Mono License Compiler
7

SYNOPSIS

9       lc -c filename -t targetassembly [-i reference...] [-v] [-o outputpath]
10       [-nologo]
11

DESCRIPTION

13       lc tool is a  license  compiler  for  Mono.  It's  used  to  convert  a
14       licenses.licx  file  to  a  resource  that can be embedded into an exe‐
15       cutable.
16
17       When using commercial components for .NET they often require a  license
18       resource at runtime to make sure the developer was licensed to use this
19       control. The most common way of making sure the component was  properly
20       licensed  is  by using license resources. At compile time the developer
21       uses the lc  tool  to  convert  a  licenses.licx  file  to  a  program‐
22       name.exe.resources  file  and  embed  that as a managed resource during
23       compilation.
24

RUNTIME OPTIONS

26       The following options are available:
27
28       --complist=filename, -c filename
29              This option is used to specify the input file, the licenses.licx
30              file to create a license reesource for. This option is required.
31              The license compiler will read each line in this file and try to
32              load the types specified on that line.
33
34       --target=assemblyname, -t targetassembly
35              full  assembly name with file extension for the target assembly.
36              The license compiler uses this  as  a  key  when  compiling  the
37              licenses.  It  has  to  match  the assembly the resource will be
38              embedded in. This option is required.
39
40       --load=reference, -i reference
41              Assembly reference to load before trying to compile  a  license.
42              This  option  is  needed for assemblies where the references are
43              not in the gac. Compilers should  pass  all  references  to  the
44              license compiler.
45
46       --verbose,, -v
47              Gives more verbose output about the license compiling process.
48
49       --help, -h
50              Displays usage instructions.
51
52       --output=path, -o path
53              Target  path  file the licenses resource. By default the license
54              compiler emits the resource in the current directory. The  file‐
55              name  will  always  match the target assembly passed to --target
56              with .licenses added.
57
58       --nologo
59              Do not emit the "Mono License Compiler" logo   on  stdout  while
60              compilng.
61
62

LICENSE FILES

64       The format for the license files (licenses.licx) is the following:
65            # comment
66            namespace.type, assemblyname
67            namespace.type, full-assemblyname
68
69       All  lines  starting with a # are ignored. the first form requires that
70       the assembly was loaded through  the  --load,-i  option  but  does  not
71       require the full assembly name, only the first part.
72
73       The  second form requires the full assembly name including locale, ver‐
74       sion and publickeytoken.
75
76

MAILING LISTS

78       Mailing  lists  are  listed  at  the  http://www.mono-project.com/Mail
79       ing_Lists
80

WEB SITE

82       http://www.mono-project.com
83

SEE ALSO

85       mono(1), mcs(1)
86
87
88
89
90                                                                  lc(Mono 2.6)
Impressum