定义了相同实体的多个 XSD 文件

发布于 2024-09-24 01:37:58 字数 235 浏览 0 评论 0原文

感谢您的帮助,

我们有两个 XSD 文件,它们都共享一些相同的实体,而另一些则不同。请注意,有差异的称为不同的。

我们希望生成可以序列化/反序列化这些实体的 C# 代码,而不会最终导致两个实体在两个不同的命名空间中共享相同的名称和相同的内容。其中一个例子是枚举。

我们确实尝试使用 XSD.exe 和 SVCUTIL.exe,但找不到正确的方法。

再次感谢,很高兴,

帕特里克

Thanks for any help,

We have two XSD files, both of them shares some same entities and some others different. Note that the one with differences are called differently.

We want to generate C# code that can Serialize / Deserialize those entities, without ending up with two entities that share the same name and same content in two different namespaces. An exemple of those are enums.

We did try with XSD.exe and SVCUTIL.exe, but could not found a proper way to do so.

Thanks again, gladly appreciated,

Patrick

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

娇女薄笑 2024-10-01 01:37:58

尝试使用此

wsdl XMLSchema1.xsd XMLSchema2.xsd /language:c# /sharetypes

Trying using this

wsdl XMLSchema1.xsd XMLSchema2.xsd /language:c# /sharetypes

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文