升级到 Azure SDK 2.6 后无法在 Windows 通用应用程序中加载共享 'project'

Cannot load shared 'project' in Windows Universal app after upgrading to Azure SDK 2.6

我刚刚安装了 April 2015 release of the Azure SDK。它是 2.6 版,之前我使用的是 2.5 版。现在我的一个项目将无法加载。它是 Windows 通用应用程序中的共享项目。

当我右键单击项目并选择 'reload' 时出现弹出错误

The method or operation is not implemented

输出 window 提供了更多详细信息:

Things.Shared.shproj : error : The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.

1) No exports were found that match the constraint: ContractName Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService RequiredTypeIdentity Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService

Resulting in: Cannot set import 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.ProjectReferencesService (ContractName="Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService")' on part 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService'. Element: Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.ProjectReferencesService (ContractName="Microsoft.VisualStudio.ProjectSystem.References.IBuildDependencyProjectReferencesService") --> Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService

Resulting in: Cannot get export 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.WireUp (ContractName="Microsoft.VisualStudio.ProjectSystem.ConfiguredProject.AutoLoad")' from part 'Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService'. Element: Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService.WireUp (ContractName="Microsoft.VisualStudio.ProjectSystem.ConfiguredProject.AutoLoad") --> Microsoft.VisualStudio.Azure.Deployment.ProjectReferenceMaintenanceService

Windows 通用应用程序的其他部分(Windows 8.1 项目和 Windows Phone 8.1 项目)安装了两个 Azure NuGet 包:Windows Azure 移动服务 1.3.2 和 Windows Azure 存储 4.3.0。 (N.B。这两个项目加载没有问题。)

这对我来说不是阻碍,因为卸载 Azure SDK 2.6 会消除加载失败。要卸载,我通过控制面板转到 'uninstall or change a program',然后卸载 Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.6

我想知道如何在不卸载 Azure SDK 4.6 的情况下解决这个问题。

We have been able to reproduce the issue, but don't have a workaround at this time. If you want to use the Universal App projects with VS 2013, you will have to uninstall Azure SDK for VS 2.6. The issue does not happen on VS 2015 RC if you would like to give that a try. We hope to have news soon about how we can get a fix for this issue on VS 2013.

Chuck Weininger, Dev Lead, Microsoft

https://social.msdn.microsoft.com/Forums/en-US/e8123821-dcb1-477f-a746-f6f016a724ea/cannot-load-shared-project-in-windows-universal-app-after-upgrading-to-azure-sdk-26?forum=azuremobile&prof=required#de621720-3afc-458c-ba85-f691be9e74c1

结束 the Azure Mobile Services forum Chuck Weininger 发布了以下答案:

The [fixed] build of Azure SDK 2.6 is now available, but it may not have propagated to all download servers yet.

You can run the Web Platform Installer and if you don’t have the new build installed, it should allow you to install 2.6 again. But it might not if you are accessing a download server that doesn’t have the new bits yet. If WebPI doesn't allow you to install 2.6 again, then wait a few hours and try again.

The build number for the version with the fixes is build 2.6.30508.1601. You can identify the build of the SDK from Control Panel -> Programs and Features -> Microsoft Azure Tools for Microsoft Visual Studio 2013 – v 2.6. The Version column will display the build number

我已按照 Chuck 的说明进行操作,现在可以毫无问题地加载新版本和共享项目。