Export (0) Print
Expand All

MSBuild Project File Schema Reference 

Provides a table of all the MSBuild XML Schema elements with their available attributes and child elements.

MSBuild uses project files to instruct the build engine what to build and how to build it. MSBuild project files are XML files that adhere to the MSBuild XML schema. This section documents the XML schema definition (.xsd) file for MSBuild.

MSBuild XML Schema Elements

The following table lists all of the MSBuild XML schema elements along with their child elements and attributes.

Element Child Elements Attributes

Choose Element (MSBuild)

Otherwise

When

--

Import Element (MSBuild)

--

Condition

Project

Item Element (MSBuild)

ItemMetaData

Condition

Exclude

Include

ItemGroup Element (MSBuild)

Item

Condition

ItemMetadata Element (MSBuild)

--

--

OnError Element (MSBuild)

--

Condition

ExecuteTargets

Otherwise Element (MSBuild)

Choose

ItemGroup

PropertyGroup

--

Output Element (MSBuild)

--

Condition

ItemName

PropertyName

TaskParameter

Project Element (MSBuild)

Choose

Import

ItemGroup

ProjectExtensions

PropertyGroup

Target

UsingTask

DefaultTargets

xmlns

ProjectExtensions Element (MSBuild)

--

--

Property Element (MSBuild)

--

Condition

PropertyGroup Element (MSBuild)

Property

Condition

Target Element (MSBuild)

OnError

Task

Condition

DependsOnTargets

Inputs

Name

Outputs

Task Element (MSBuild)

Output

Condition

ContinueOnError

Parameter

UsingTask Element (MSBuild)

--

AssemblyFile

AssemblyName

Condition

TaskName

When Element (MSBuild)

Choose

ItemGroup

PropertyGroup

Condition

See Also

Community Additions

ADD
Show:
© 2014 Microsoft