XML Serialization and Schema without xsd.exe
c#, xml-serialization
Solution
Look at the `System.Xml.Serialization.XmlSchemaExporter` class. I can't recall the exact details, but there is enough functionality in that namespace to do what you require.
Problem
I use XML serialization for the reading of my Config-POCOs. To get intellisense support in Visual Studio for XML files I need a schema file. I can create the schema with xsd.exe mylibrary.dll and this works fine. But I want that the schema is always created if I serialize an object to the file system. Is there any way without using xsd.exe?