问题描述
尝试使用xsd.exe为我们创建的类生成xsd时出现故障。从仅包含已剥离的测试类的dll生成仍然返回"Microsoft.Health.HealthRecordItemKey无法序列化,因为它不具有无参数构造函数的
。"所以它似乎是ApplicationSpecific继承的基础,尽管我们的类和ApplicationSpecific都有无参数构造函数。
我们有很多开发经验,只是在构建复杂的HealthVault时没有太多 - 基于类,所以解决方案可以是"noob"。这个特定领域的错误。
您是否看到并解决了这个问题?
感激不尽的任何指导。
谢谢。
PS我们已经阅读了Eric G关于课堂建设的帖子,所以任何
的回复都指出我们没有太多的帮助。
Hi,
We get a failure when trying to use xsd.exe to generate an xsd for a class we have created. Generating from a dll containing only a stripped down test class still returns "Microsoft.Health.HealthRecordItemKey cannot be serialized because it does not have a parameterless constructor." so it seems to be fundamental to the inheritance of ApplicationSpecific even though both our class and ApplicationSpecific do have parameterless constructors.
We have loads of dev experience, just not a lot in building complex HealthVault-based classes so the solution could be a "noob" error in this specific area.
Have you seen and overcome this problem?
Any guidance gratefully received.
Thanks.
P.S. We have read Eric G's posts on class construction so any responses that only point us there won't be a lot of help.
这篇关于基于ApplicationSpecific为自定义类生成XSD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!