TFS Deployment to Azure Error: cannot find ClientPerfCountersInstaller.exe
I had a similar issue with a dedicate cache worker role, but in my case the Microsoft.WindowsAzure.Caching folder never showed up in VisualStudio. In the end, I had to open the .csproj file for the worker role project and this:
<None Include="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe.config"> <CopyToOutputDirectory>Always</CopyToOutputDirectory></None><None Include="Microsoft.WindowsAzure.Caching\ClientPerfCountersInstaller.exe"> <CopyToOutputDirectory>Always</CopyToOutputDirectory></None><None Include="Microsoft.WindowsAzure.Caching\PerformanceCounters.xml"> <CopyToOutputDirectory>Always</CopyToOutputDirectory></None>
I put that within the same <ItemGroup>
tag as the app.config file, and now it's deploying as it should.