maxp
maxp

Reputation: 25141

xsd.exe to generate classes as separate files?

I have a collection of .xsd files. When generating classes using xsd.exe, the output file is some ~17000 lines long with hundreds and hundreds of partial classes.

In the interest of neatness, is it possible for either xsd.exe or even visual studio (2010) to split these classes, each into a separate file?

Upvotes: 8

Views: 4060

Answers (1)

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174289

I don't know of any possibility using xsd.exe or plain VS, but it is possible using ReSharper. Right-click on the file -> Refactor -> Move types into matching files.

Upvotes: 10

Related Questions