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

有些话、适合烂在心里 提交于 2019-12-03 04:35:50

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

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


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

Note that this feature requires at least .NET 4.5.

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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!