【问题标题】:Lots of schema warnings after project upgraded to SDK 2.6项目升级到 SDK 2.6 后出现大量架构警告
【发布时间】:2015-06-10 08:08:18
【问题描述】:

将我的云项目升级到 Azure SDK 2.6 后。 (通过项目属性窗口中的按钮),一切正常,除了我收到了数百个 *.cscfg 文件的警告:

The complexType 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration:AccessControlElement' has already been declared.
The complexType 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration:AddressAssignmentsElement' has already been declared.
The complexType 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration:Certificate' has already been declared.

等等。更多元素。

已经尝试过清理、重建、关闭打开 VS...但没有成功。它不会影响项目的功能,但是让错误列表充满这些东西真的很烦人。

知道什么是错误的以及如何解决它吗?

【问题讨论】:

    标签: azure visual-studio-2013


    【解决方案1】:

    好的,MSDN forums 的人帮我解决了这个问题。

    1. 检查服务定义文件中的SchemaVersion值,应该是“schemaVersion="2015-04.2.6"(这个对我来说没问题)

    2. 以 XML 格式打开服务定义文件,右键单击它,属性 -> 模式。在窗口中(见图),只保留 ServiceDefinitionSchema26.xsd 选中(“使用此模式”),将所有其他版本设置为自动(未选中)。重新启动 Visual Studio,警告就消失了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-04
      • 1970-01-01
      • 1970-01-01
      • 2011-07-14
      • 2014-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多