Is the "xsd" command not supported in Visual Studio 2012 command window?

Aleksei Chepovoi picture Aleksei Chepovoi · Jan 26, 2013 · Viewed 14.3k times · Source

I've read that it is possible to run xsd commands right in visual studio (2010). I have VS 2012 on my machine and when I run

xsd XMLFile.xml

I get

Command "xsd" is not valid.

So, is the "xsd" command not supposted in VS 2012 and is there any other way to execute "xsd" in VS 2012?

Answer

Glenn Stevens picture Glenn Stevens · Jan 26, 2013

xsd.exe is available from the 'Developer Command Prompt for VS2012, not the command window that is part of the VS2012 IDE.

The 'Developer Command Prompt for VS2012' itself can be started from Start Menu -> All Programs -> Microsoft Visual Studio 2012 -> Visual Studio Tools -> Visual Studio Command Prompt For VS2012