views:

763

answers:

3

Where can I find the W3C XML Schema (XSD) for a .csproj file, for Visual Studio 2008?

It seems like this should be obvious, but I spent some time and haven't found one.

I looked in %VS2008%\xml\Schemas, no joy. no joy searching the 'tubes either.

+3  A: 

I was able to find it in %VS2008%\Xml\Schemas\1033\MSBuild\Microsoft.Build.Core.xsd. The target namespace matches the project files' namespace, and the structure looks right.

Welbog
+3  A: 

The csproj files are MSBuild files so you should use the schema for MSBuild which is in:

%VS2008%\Xml\Schemas\1033\MSBuild\Microsoft.Build.Core.xsd
Pervez Choudhury
+5  A: 

The csproj files are in fact MSBuild files. The xsd for those can be found here:

%windir%\Microsoft.NET\Framework\[framework version]\Microsoft.Build.xsd
Fredrik Mörk