Problem with <EnableInitializeFields>True</EnableInitializeFields> in import xsd base

Jul 12, 2012 at 11:06 AM
Edited Jul 12, 2012 at 11:07 AM


my problem is in the generation of class from two xsd that import an base xsd (the same). 

Although it is set to true the property 


, sometimes are not created the empty constructors if the node type belong at base xsd.

Following the command line:

xsd base:

Xsd2Code.exe "XSD.Base.xsd" XSD.Base.cs /gbc- /if+ /xa+ /sm 


xsd1 (that import xsd base):

Xsd2Code.exe "XSD.Company.xsd" XSD.Company.Designer.cs /gbc- /dbg- /eit+ /if+ /xa+ /sm 


xsd2 (that import xsd base):

Xsd2Code.exe "XSD.Person.xsd" XSD.Person.Designer.cs /gbc- /dbg- /eit+ /if+ /xa+ /sm 


base, company and person have the same namespace (<NameSpace>Business.Report.Base</NameSpace>).


Thanks for your consideration!

Jul 22, 2012 at 10:44 AM

Witch version of xsd2code are you using ?

Jul 27, 2012 at 9:58 AM

The version is