0

I using the XSD.exe provided in Visual Studio Tools to generate classes from an XSD file. Currently all of the classes are generated in 1 CS file. Is it possible to have each class generated into separate CS files?

gunr2171
  • 16,104
  • 25
  • 61
  • 88
tdbeckett
  • 618
  • 8
  • 19
  • 1
    Not as-is. You'd have to use some other tool to separate the classes. One drawback to doing that is it's easier to get the classes out-of-sync with the schema. – D Stanley Sep 18 '14 at 20:54
  • @DStanley Stanley"Good point. I hadn't thought about that. – tdbeckett Sep 18 '14 at 20:57

1 Answers1

1

ReSharper can do this. Right-click on the generated cs file -> Refactor -> Move types into matching files. But i would recommend to keep it in one file, cause of the reason D Stanley mentioned.

devmb
  • 805
  • 6
  • 18