2010-02-09 82 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架構在代碼生成更多的控制。