The CXSC application is built as part of the CodeXS Visual Studio
solution. The project name is "Application.ConsoleApp".
1. Application command line:
2. Command line parameters:
2.1 -xs Schema (XSD) file path
Specify the schema file path of the input (base or root)
XML schema file. The schema can include or import other schema files, and these
will be automatically used by CodeXS, provided that the relative or absolute
paths specified can be resolved to an absolute UNC or local path name, or URL.
If a URL is specified, it should be publicly accessible.
2.2 -ns Code namespace name
Specify a valid C# or VB.NET namespace name. If the name
is invalid (will not compile), CodeXS attempts to fix the name automatically.
2.3 -out Code files output folder
Specify the output file folder, either as a valid UNC, or
relative / absolute local file path. The path must exist, and must be
accessible by the application.
2.4 -lang Code language
Specify the output language for the generated code:
-
CS = C#.NET
-
VB = VB.NET
If not specified, C# is assumed.
2.5 -i Import schema files
If additional schemas are to be incorporated for
code-generation, they can be specified here. Multiple schemas can be specified
by separating each path with a comma.
2.6 -m ICodeModifier assembly files
If additional code generation is to be done, assemblies
can be specified which implement the ICodeModifier interface. These assemblies
will be attached to the CodeXS generator and the interface implemented by each
assembly called for every schema object in the schemas used for code
generation. Multiple modifier assemblies can be specified by separating each
path with a comma.
2.7 /r Raw mode
If this flag is specified, all ICodeModifier assemblies,
including the built-in "StandardCodeModifier.dll" are ignored, and the raw
XSD.EXE generated code is output.
2.8 /v Verbose mode
If specified, the CodeXS application will generate
console progress and error reports.
2.9 /s Silent mode
If specified, the CodeXS application will generate no
console reports will be generated.
2.10 /11 Generate for .NET Version 1.1.4322.xxx
Will execute and generate code using the required .NET
version, if installed, else will execute on the latest installed .NET Version.
"CodeXS.Schema.StandardCodeModifier.{.NET Version string}.dll" is included by
default as the standard code modifier set, unless the -m parameter is
specified.
2.11 /20 Generate for .NET Version 2.0.50727.xx
Will execute and generate code using the required .NET
version, if installed, else will execute on the latest installed .NET Version.
"CodeXS.Schema.StandardCodeModifier.{.NET Version string}.dll" is included by
default as the standard code modifier set, unless the -m parameter is
specified.
2.12 /h Help mode If specified, displays the usage output
message.
3. Examples: