在禁用类型定义语言的情况下启用XSD [英] Enable XSD as Type Definition Language is Disabled
本文介绍了在禁用类型定义语言的情况下启用XSD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我来自以下问题:如何安装Contract- VisualStudio 2012中的第一个工具
When I tried to perform the steps mentioned by the answer of that question, which is also what is mentioned in the topic Contract-First Tool, I faced the following problem: The options Enable XSD as type definition language and Validate WCF configuration when building the project are disabled.
生成的XML模式有效,并且取自上述教程.
The XML Schema generated is valid and it was taken from the aforementioned tutorial.
为什么会这样?
推荐答案
您的程序集需要以.NET 4.5为目标,才能启用此选项.
Your assembly needs to target .NET 4.5 for this option to be enabled.
这篇关于在禁用类型定义语言的情况下启用XSD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文