You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a full set of XSD's, some which declare common types that are used in others.
I don't know how I can run this tool (CLI or Nuget) to only generate the common types once. Our xsd's include:
Common types
Orders
Invoices
OrderConfirmations
Etc. it's a whole tree of different standards for these doc types.
An option to "do not include external xsd's" would help me, as I can then just add the correct "using" statements post creation. Is this possible to achieve? Concrete example:
I extract the common types xsd into namespace MyBusiness.Standards.Standard1.v1_1.Common
When I extract "Orders" xsd, it goes into namespace MyBusiness.Standards.Standard1.v1_1.Orders but with an instruction to include a using statement for the first namespace.
Today, it reads and includes referenced xsd files and generates all the common types for every type that I have. A command line example could be:
> xsd2cs -n "Orders" --add-using "Common" --do-not-include -o Test .\Orders.xsd
Doable?
The text was updated successfully, but these errors were encountered:
I'm not sure I understand the issue. For each distinct XML Schema type there should be only one corresponding C# class that is being generated. Where does the duplication occur in your use case?
I have a full set of XSD's, some which declare common types that are used in others.
I don't know how I can run this tool (CLI or Nuget) to only generate the common types once. Our xsd's include:
Etc. it's a whole tree of different standards for these doc types.
An option to "do not include external xsd's" would help me, as I can then just add the correct "using" statements post creation. Is this possible to achieve? Concrete example:
MyBusiness.Standards.Standard1.v1_1.Common
MyBusiness.Standards.Standard1.v1_1.Orders
but with an instruction to include a using statement for the first namespace.Today, it reads and includes referenced xsd files and generates all the common types for every type that I have. A command line example could be:
Doable?
The text was updated successfully, but these errors were encountered: