简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM