0

I have 80 XSD files from the Amazon SP-API specification. I want to generate the C# classes, but my main problem is that if I use xsd.exe, the tool create me only one HUGE .cs file (42 Mb and 2 million lines of code), and it's impossible to use/open it in Visual Studio.

How can I create multiple .cs files from these 80 files?

Thanks a lot!

Toni
  • 1,555
  • 4
  • 15
  • 23
davide.ferrari
  • 221
  • 2
  • 10
  • 1
    Seems not possible with Xsd.exe alone but [this answer on Create MULTIPLE class files based on an XSD](https://stackoverflow.com/a/6657610/205233) suggests Resharper to split your resulting monolith into individual .cs files. – Filburt May 29 '21 at 08:46
  • I've tried also Resharper but it doesn't work. I've open a bug to JetBrains https://youtrack.jetbrains.com/issue/RSRP-484530 – davide.ferrari May 29 '21 at 08:57
  • http://www.stylusstudio.com/ –  May 29 '21 at 10:23

0 Answers0