Sdílet prostřednictvím


XSD Task

Wraps the XML Schema Definition tool (xsd.exe), which generates schema or class files from a source. For more information, see XML Schema Definition Tool (Xsd.exe).

Parameters

The following table describes the parameters of the XSD task.

Parameter

Description

AdditionalOptions

Optional String parameter.

A list of options as specified on the command line. For example, "/option1 /option2 /option#". Use this parameter to specify options that are not represented by any other XSD task parameter.

For more information, see the table of options in XML Schema Definition Tool (Xsd.exe).

GenerateFromSchema

Optional String parameter.

Specifies the types that are generated from the specified schema.

Specify one of the following values, each of which corresponds to an XSD option.

ValueCommand-line option
classes/classes
dataset/dataset

For more information, see the /classes and /dataset options in XML Schema Definition Tool (Xsd.exe).

Language

Optional String parameter.

Specifies the programming language to use for the generated code.

Choose from CS (C#, which is the default), VB (Visual Basic), JS (JScript), or VJS (Visual J#). You can also specify a fully qualified name for a class that implements System.CodeDom.Compiler.CodeDomProvider Class.

For more information, see the /language: option in XML Schema Definition Tool (Xsd.exe).

Namespace

Optional String parameter.

Specifies the runtime namespace for the generated types.

For more information, see the /namespace: option in XML Schema Definition Tool (Xsd.exe).

Sources

Required ITaskItem[] parameter.

Defines an array of MSBuild source file items that can be consumed and emitted by tasks.

SuppressStartupBanner

Optional Boolean parameter.

If true, prevents the display of the copyright and version number message when the task starts.

For more information, see the /nologo option in XML Schema Definition Tool (Xsd.exe).

TrackerLogDirectory

Optional String parameter.

Specifies the directory for the tracker log.

See Also

Other Resources

MSBuild Task Reference