1
我的csproj中有一个xsd文件,xsd.exe从中生成一个包装cs文件。.xsd在xsd.exe生成的包装类中的注释
我想以某种方式评论xsd文件,注释也被插入到生成的包装类中,因此可以有效地使用VS intellisense。
这可能使用xsd.exe吗?
我的csproj中有一个xsd文件,xsd.exe从中生成一个包装cs文件。.xsd在xsd.exe生成的包装类中的注释
我想以某种方式评论xsd文件,注释也被插入到生成的包装类中,因此可以有效地使用VS intellisense。
这可能使用xsd.exe吗?
显然,这似乎是不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架构在代码生成更多的控制。