I have two XSD
files and I need to combine them and generate a .cs
file (C# objects).
One XSD is the one we already use (let's call it first.xsd
), and we still need the C# objects that are generated from this one. The second.xsd
file has changes, such as adding new fields and objects, and also changes in existing objects.
What we need is just a new generated .cs
file which still has the objects, properties etc from the first.xsd
, and added are the changes from the second.xsd
.
I couldn't accomplish this with everything I have done so far. How can I realize this?
<xsd xmlns='http://microsoft.com/dotnet/tools/xsd/'>
<generateClasses language='CS' namespace='name'>
<schema>second.xsd</schema>
<schema>first.xsd</schema>
</generateClasses>
</xsd>