本文介绍了Azure SDK 2.5.1 无法发布 cloudService的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将我的云服务成功升级到新的Azure SDK for .NET 2.5.1"后,我在尝试打包/发布时遇到以下错误.

After successfully upgrading my cloud service to the new "Azure SDK for .NET 2.5.1" I got the following error when trying packaging/publishing.

无法加载文件或程序集Microsoft.WindowsAzure.Packaging,版本=1.0.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35' 或它的依赖项之一.系统找不到文件指定的.C:程序文件(x86)MSBuildMicrosoftVisualStudiov12.0Windows Azure工具2.5Microsoft.WindowsAzure.targets

Microsoft.WindowsAzure.targets"配置文件中的相关行是2930,显然与CSPack有关.

The related line in the "Microsoft.WindowsAzure.targets" config file is 2930 which obviously is related to CSPack.

<CSPack
  ServiceDefinitionFile="@(TargetServiceDefinition)"
  Output="@(PublishServicePackage)"
  PackRoles="@(Roles)"
  SiteMapping="@(SiteMapping)"
  RoleProperties="@(RoleProperties)"
  ImportedModules="@(ImportedModules)"
  CopyOnly="false"
  >
</CSPack>

所以我继续在一个全新的项目中创建一个全新的 Azure 云服务,以查看升级是否出现问题.不幸的是,问题仍然存在.

So I went on to create a fresh new Azure Cloud service in a fresh new project to see if something went wrong with the upgrade. Unfortunately the problem persists.

是否有解决方法或者我是否必须回滚到 v2.4(这会给我带来很大的痛苦)

Is there a workaround or will I have to rollback to v2.4 (that will cause me significant amount of pain)

我在 VS 2013 更新 4 上运行.

I am running on VS 2013 update 4.

推荐答案

麻烦大家了.我们正在调查导致这种情况的原因.看起来我们的安装程序有一个奇怪的行为,在某些环境中,这两个二进制文件没有正确安装.

Sorry for the trouble, everyone. We are investigating what's causing this. It looks like there is an odd behavior with our installers where in some environments those two binaries are not installed correctly.

我们确实发现如果删除并重新安装 2.5.1 Azure 创作工具,将正确安装丢失的二进制文件.因此,如果您遇到此问题,请从程序和功能中删除 Authoring Tools v2.5.1,然后通过 Web 平台安装程序或直接下载链接重新安装:

We did discover if the 2.5.1 Azure Authoring Tools is removed and reinstalled, the missing binaries will be installed correctly. So if you run into this issue, please remove Authoring Tools v2.5.1 from Programs and Features, and reinstall via either the Web Platform Installer or the direct download links:

http://download.microsoft.com/download/1/E/7/1E76DD6F-66F1-47E0-A76A-3BBAAC617316/MicrosoftAzureAuthoringTools-x64.msi

http://download.microsoft.com/download/1/E/7/1E76DD6F-66F1-47E0-A76A-3BBAAC617316/MicrosoftAzureAuthoringTools-x86.msi

给您带来的不便深表歉意.我们将继续调查.

Apologies for the inconvenience. We will continue the investigation.

这篇关于Azure SDK 2.5.1 无法发布 cloudService的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 05:50