none
How to generate single xsd file against multiple cs files RRS feed

  • Question

  • Hello All, 

    I have multiple cs files. I need to generate single xsd file against all cs files(classes) i am having. Some one help me to achieve this. 

    Thanks in Advance.

    Chandu

    Monday, October 16, 2017 10:39 AM

All replies

  • C# source files and XSDs have nothing to do with each other. Are you trying to use Xml serialization to serialize out these types and you want an XSD for that?

    Michael Taylor http://www.michaeltaylorp3.net

    Monday, October 16, 2017 2:15 PM
    Moderator
  • yes Michael. I am using XML serialization for these types.
    Tuesday, October 17, 2017 5:10 AM
  • Try using the xsd tool that ships with the SDK. It can accept an assembly and will attempt to generate an XSD from it.

    Michael Taylor http://www.michaeltaylorp3.net

    • Proposed as answer by Fei HuModerator Wednesday, October 18, 2017 8:48 AM
    Tuesday, October 17, 2017 3:34 PM
    Moderator