I'm looking at some work updating classes generated from xsds. I think this would be a great use of T4 templates, but I don't see any examples of people doing this. Essentially, I'd like to do what Linq to XSD has done, but without including alpha build targets in a production solution.
Any relevant links out there?
Now a wiki. Store your relevant answers here.
I'm currently using xsd2code.net, find it here: https://github.com/mamift/LinqToXsdCore. Lots of benefits:
open source, so you can tune/hack it
replace arrays with lists or even your own custom collection type
run from commandline, or run as a visual studio addin (right click xsd, tell to generate)
I also like that you can run it on a single xsd file and it wont blow up if referenced xsd's cannot be found (like how xsd.exe does). So it's easy to run it on individual files, in case you just want to do a quick update on one file.
However, T4 should be an option as well, I just googled T4 XSD and found a few solutions talking about this.