The error was:
A quick search pointed to a few possible solutions, luckily we weren't the first to experience this:MSBUILD : error : Unable to read Code Analysis output report. Make sure that the directory is writable (default is the project output directory). [MyProjectA.csproj]
- Reduce the path length to be below 260 characters. As the old Windows API imposes a restriction of the total length a file name is allowed to be.
- Remove the
<CodeAnalysisLogFile>bin\Release\MyProjectA.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>lines from the .csproj file
- Clean the Team Build workspace to ensure that an older version of this file isn't causing any issues.
For us it turned out that a combination of 2 & 3 solved the issue. After removing the lines from the project file and running a build which clears the TFS workspace we're no longer experiencing the errors.