I am currently developing a code generation tool that takes an XML Schema and generates C# classes, compiles the C# classes and SGENs them with the sgen.exe to create the serializeable .dll. The problem is that generating the serializable dll from the sgen.exe takes way too long. It could be because my project contains about 1400 serializeable classes.
The sgen.exe completes successfully and generates a valid .dll but it takes about 25 to 30 minutes. This makes testing this project a nightmare. Is there anyway to speed this up? I can see the the sgen.exe is only using 1 core of my processor but I assume that is because sgen.exe cannot be multithreaded. Any ideas how I can speed this up?