xsd文件生成cs文件命令

C:WindowsSystem32>xsd.exe c:/Createst.xsd -c

C:WindowsSystem32>xsd.exe c:/Creauest.xsd /c /Language:C# /outputdir:d:

生成的cs带命名空间:C:WindowsSystem32>xsd.exe c:/CreateOruest.xsd /n:这里写命名空间 /c /Language:C# /outputdir:d:

C:Userscsangsource>xsd /c /n:"EntityQry"(命名空间) "C:Request.xsd"(目标文件路径)
Microsoft(R) Xml 架构/数据类型支持实用工具
[Microsoft (R) .NET Framework, Version 4.6.1055.0]
Copyright (C) Microsoft Corporation. All rights reserved.
正在写入文件“C:UserscsangsourceRequest.cs”。

原文地址:https://www.cnblogs.com/sanday/p/7676003.html