Azure 持续部署错误无法加载文件或程序集 Microsoft.WindowsAzure.Packaging

标签 azure azure-cloud-services

当我尝试将项目部署到云服务(使用持续部署和托管构建 Controller )时,我突然开始收到此错误。

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Windows Azure Tools\2.5\Microsoft.WindowsAzure.targets (2917): Could not load file or assembly 'Microsoft.WindowsAzure.Packaging, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

我找到了this SO question ,但这对我没有帮助。

我还注意到我什至没有文件夹:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\

我只有 v10.0、v11.0、v12.0,因此我手动创建了 v14.0 并复制了 v12.0 形式的文件夹 Windows Azure Tools,但没有帮助。

编辑

我已将 Azure 工具更新到 2.6,但问题和错误消息仍然相同。

我该如何解决这个问题?

最佳答案

我今天在 Visual Studio Online 的主机构建 Controller 上发生了同样的错误。我假设您在谈论 Azure 和持续集成时使用的是相同的东西。

我注意到他们在最后一天左右刚刚在构建 Controller 上发布了 Azure SDK 2.6 支持。我觉得这可能在某种程度上导致了问题。

我更新了我的云项目以使用 2.6, checkin 后一切都恢复正常。一些 ccproj 详细信息:

<PropertyGroup>
    <VisualStudioVersion Condition=" '$(VisualStudioVersion)' == '' ">10.0</VisualStudioVersion>
    <CloudExtensionsDir Condition=" '$(CloudExtensionsDir)' == '' ">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Windows Azure Tools\2.6\</CloudExtensionsDir>
  </PropertyGroup>

关于Azure 持续部署错误无法加载文件或程序集 Microsoft.WindowsAzure.Packaging,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30052052/

相关文章:

azure - 您可以拥有没有 HNS 的 Azure Data Lake gen2 吗?

c# - NServiceBus.Azure 和 EF SqlAzureExecutionStrategy

azure - 是否可以在云服务中创建sql server?

powershell - 使用 powershell 进行 Azure 发布

azure - 辅助角色和带有服务总线队列的辅助角色有什么区别

azure - 如何知道用户是否选择在 Azure B2C 中保持登录状态

javascript - 如何使用 REST API 或 javascript 将 Powerpoint 上传并创建嵌入代码到 Onedrive

azure - 在 HDInsight 群集配置上向 ADLS 授予访问权限的更快方法?

linux - 用于 azure 云服务的 nix 操作系统

asp.net-mvc - Visual Studio 中我的 Web 应用程序没有转换(到云服务)菜单项