Azure project升级到SDK 2.6后出现大量架构警告

Azure project升级到SDK 2.6后出现大量架构警告,azure,visual-studio-2013,Azure,Visual Studio 2013,将我的云项目升级到Azure SDK 2.6后。(通过“项目属性”窗口中的按钮),一切正常,除了我收到大约100条关于*.cscfg文件的警告: The complexType 'http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration:AccessControlElement' has already been declared. The complexType 'http://schemas.micros

将我的云项目升级到Azure SDK 2.6后。(通过“项目属性”窗口中的按钮),一切正常,除了我收到大约100条关于*.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。。。没有成功。它不会影响项目的功能,但如果错误列表中充满了这些东西,那真的很烦人

你知道什么地方出了问题,怎么解决吗?

好的,我的同事帮我解决了这个问题

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

  • 以XML形式打开服务定义文件,右键单击它,属性->架构。在窗口中(请参见pic),仅选中ServiceDefinitionSchema26.xsd(“使用此架构”),将所有其他版本设置为自动(未选中)。重新启动Visual studio,警告消失