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

前端 未结 3 532
后悔当初
后悔当初 2021-02-07 00:41

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

相关标签:
3条回答
  • 2021-02-07 01:19

    How to bring up the Visual Studio Command Prompt:

    They say a picture is worth a thousand words (Works for Visual Studio 2017 - Community Edition / Windows 10):

    1. Bring up the Visual Studio Command prompt.
    2. Now run the XSD command against the relevant XML file.

    It's as easy as that!

    0 讨论(0)
  • 2021-02-07 01:46

    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

    0 讨论(0)
  • 2021-02-07 01:46

    Under Visual Studio 2012, there is a feature called Past Special which generate the class from an xml file.

    Special Paste in VS 2012
    See here: Paste XML or JSON as classes in Visual Studio.

    Note that this feature requires at least .NET 4.5.

    0 讨论(0)
提交回复
热议问题