Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mconfig.1 « man - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae79cb97dc4e1c6b4c62852824442f3452a26d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.TH Mono "mconfig"
.SH NAME
mconfig, \- Utility for modifying .NET configuration files
.SH SYNOPSIS
.B mconfig [options] command [command_parameters]
.SH DESCRIPTION
mconfig can be used to edit .NET configuration files, by adding "features"
(that is sets of xml statements) defined in one of the config files read
by mconfig. The config file can also define layouts of default configuration
files, which may be useful for bootstrapping your .NET projects.

To see the list of recognized commands, default configuration files and features, run
mconfig without passing any parameters.
.SH OPTIONS
.TP
.B -c <config_file>, --config=<config_file>
Read the specified config file after reading the other, preconfigured, config
files for the utility. Settings in the specified file override those found in
the other configuration locations.
.TP
.B -t {any | web | application}, --target={any | web | application}
Features and default configuration files defined in the mconfig config file(s)
can be assigned to one of the three targets - \fIweb\fR (for ASP.NET features/config files),
\fIapplication\fR - for .NET applications, \fIany\fR - applicable in both of the previous
targets. Defaults to \fIany\fR.
.TP
.B -?, -h, --help
Show a summary usage screen.
.TP
.B -v, --version
Show the mconfig version
.SH COMMANDS
.TP
.B {addfeature, af} <feature_name> [config_file_path]
Adds the feature named \fI<feature_name>\fR to the specified config file. If 
\fI[config_file_path]\fR is omitted, the name of the output configuration file 
will be chosen based on the selected target (see the \fI-t\fR option). The \fIweb\fR
target outputs configuration to file named \fIWeb.config\fR, and the \fIapplication\fR
target outputs to file named \fIapplication.exe.config\fR. The \fIany\fR target does not
have a default output file.

If the specified config file exists, the feature will be injected into it at the locations
specified by mconfig configuration. If the target config file does not exist, it will be created
and will contain only the specified feature and all its dependencies.
.TP
.B {defaultconfig, dc} [config_name [target_directory]]
Generates a default config file using the configuration entry named \fI[config_name]\fR and outputs
the resulting configuration file to the directory given by the \fI[target_directory]\fR option.
If \fI[config_name]\fR is omitted, it defaults to \fIWeb.config\fR for the \fIweb\fR target and
\fIapplication\fR target. The \fIany\fR target does not specify any default output configuration
name. If the \fI[target_directory]\fR parameter is omitted, it defaults to the current directory.

Name of the output config file created in \fI[target_directory]\fR is given in the config file
layout definition.
.PP
.SH FILES
Config files are read in the order given below. Each subsequent file may override settings found
in the files read before it.
.TP
.B $prefix/etc/mono/mconfig/config.xml
.Sp
The default configuration file, distributed with mconfig. \fI$prefix\fR is the mconfig installation
prefix specified on the compilation time.
.TP
.B $config_dir/mconfig/config.xml
.Sp
$config_dir is the directory specified in the \fIXDG_CONFIG_HOME\fR environment variable or,
 if it is empty, in the \fI.config\fR directory located in the user's home directory. This file
is not distributed with Mono.
.TP
.B ./mconfig.xml
.Sp
Local configuration file which can contain per-application settings.
.SH SEE ALSO
mconfig.config (5)
.SH AUTHOR
Written by Marek Habersack
.SH COPYRIGHT
Copyright (C) 2007 Novell, Inc (http://www.novell.com)
.SH MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.
.SH WEB SITE
Visit: http://www.mono-project.com for details