2010-02-09 83 views

回答

2

显然,这似乎是不possible with xsd.exe

When generating source code from an XML Schema document, 
Xsd.exe ignores the <appinfo> element and its contents. 
The same is true for the parent of the <appinfo> element, <annotation>. 

我试过,我没有找到任何办法强迫XSD.EXE吐出包含在模式中的任何文件。


UPDATE

我会尝试XsdDataContractImporter - 也许这提供从XSD架构在代码生成更多的控制。