次の方法で共有


XSD Task

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Wraps the XML Schema Definition tool (xsd.exe), which generates schema or class files from a source.

Parameters

The following table describes the parameters of the XSD task.

  • 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.

  • 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.

    • classes - /classes

    • dataset - /dataset

  • 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), or JS (JScript). You can also specify a fully qualified name for a class that implements System.CodeDom.Compiler.CodeDomProvider Class.

  • Namespace

    Optional String parameter.

    Specifies the runtime namespace for the generated types.

  • 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.

  • TrackerLogDirectory

    Optional String parameter.

    Specifies the directory for the tracker log.

See Also

Task Reference