azure - TFS 部署到 Azure 错误 : cannot find ClientPerfCountersInstaller. exe

标签 azure tfs tfsbuild

我将我们的实现配置为使用 Azure 缓存提供程序来维护所有云实例之间的 session 状态,如下所述: http://msdn.microsoft.com/en-us/library/windowsazure/gg185668.aspx

这在我的 csdef 文件上创建了一个新的启动任务,该任务总是失败并出现以下错误:

C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Windows Azure Tools\2.0\Microsoft.WindowsAzure.targets (987):CloudServices64:找不到名为“approot\bin”的文件\Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe' 用于角色 MyRole.Web 的启动任务 Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe 安装。

nuget 包和主文件夹中的 .exe 包含在 TFS 用于部署的源代码管理中。

我发现上一个问题解决了同样的问题: Azure Deployment Error: cannot find ClientPerfCountersInstaller.exe

但接受的答案指出,只需删除安装缓存所需的 .exe 的启动任务。

最佳答案

确保 .exe 标记为 CopyAlways,以便将其复制到您的 \bin 目录。

为此,请右键单击 Visual Studio 中的 .exe 并选择属性。确保它看起来像这样:

Copy Always Property setup

关于azure - TFS 部署到 Azure 错误 : cannot find ClientPerfCountersInstaller. exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17979115/

相关文章:

azure - Azure 搜索中所需的字符数

python - 用于调试 kubernetes pod 中运行的 python 代码的 Azure 开发空间

asp.net-mvc - 遥测初始化程序失败 : Could not load "Microsoft.AspNet.TelemetryCorrelation"

c# - Azure移动服务列表和API管理列表的API

tfs - 通过网络访问向 TFS 添加讨论评论

TFS好像卡在了 'getting sources'这一步?

svn - 如何在不同的源代码控制系统下开发 merge 文件的陷阱测试和性能测试?

tfs - TFS构建特定的变更集并使用变更集编号进行部署

git - Team Foundation Server 2013 触发器构建 pull 请求

tfs - 无法将多行字符串设置为环境变量