2

Xsd file

Can anybody explain me why an xsd file has 2 sub files (.cs and .designer.cs) and what they are for?

As for the designer.cs, in our case it is generated by Xsd2Code. Why would you do that?

HerbalMart
  • 1,669
  • 3
  • 27
  • 50

1 Answers1

3

The assumption there is that the XSD represents a model you want to work with in your code - perhaps with XmlSerializer or as a DataTable. If you don't want that, wipe the "Custom Tool" setting for th xsd file.

The .designer.cs is usually the generated file; commonly the other .cs is for your partial class additions, but check before editing/removing.

Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900