Where is the MSBuild schema file?

Every so often we get asked where the schema file is for the MSBuild XML. People (correctly) assume we have one since it is referenced as a namespace in every project file.

Our schema is installed in \windows\Microsoft.NET\framework\v2.0.50727\Microsoft.Build.xsd. If you install Visual Studio you can also find it under \Program Files\Microsoft Visual Studio 8\xml\Schemas\1033.

Thanks for pointing this out to me, Faisal!

[ Author: Neil Enns ]

Comments (3)

  1. Eric R says:

    I just tried opening the Microsoft.Build.xsd file in XML Spy 2005. That program claims the schema is invalid. It appears the "Include" attribute is specified as part of the SimpleItemType (in the Core schema) and also appears in the definition of elements such as Reference, COMReference, and others.

    I can’t say for sure whether this is actually invalid, does anyone know? The above is in the v2.0.50215 version of the Framework. Has the MSBuild schema been updated since then?

  2. When I first found out about MSBuild SideKick, I was excited. I thought that finally there’s a slim chance…

  3. Mike K says:

    I just tried opening it using XmlSpy and got the same "Invalid" error.  No root node.  If you look at the file, it's 90% just comment lines.  Certainly not anything you can actually use for validating a PROJ file.  What is the point?

Skip to main content