我将我们的实现配置为使用 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 并选择属性。确保它看起来像这样:
关于azure - TFS 部署到 Azure 错误 : cannot find ClientPerfCountersInstaller. exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17979115/