【问题标题】:How to generate .xsd from a .cs using xsd.exe tool?如何使用 xsd.exe 工具从 .cs 生成 .xsd?
【发布时间】:2012-05-15 10:12:31
【问题描述】:

我有一个 .cs 文件,其中包含 XTypedElement 和 IXMetaData 的子类。 Microsoft 有来自托管代码的tool that generates XSD files automatically,但它不接受 .cs 文件。它只接受 .exe、.dll、.xdr、.xml 和 .xsd。

如何使用此工具将我的 .cs 文件转换为 .xsd 文件?

【问题讨论】:

标签: xsd xsd.exe


【解决方案1】:

您首先需要将其编译成 dll 或 exe 文件,即 .NET 程序集,然后将其用作 xsd.exe 的输入

如果您只想转换特定的类,请使用以下命令:

xsd bin\Release\MyAssembly.exe /type:The.FullName.Of.YourType

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-05-18
    • 2011-06-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-08
    相关资源
    最近更新 更多