Adding a new project to an existing solution, I configured Code Analysis (fxCop) and started getting this error from my continuous integration build:

MSBUILD : error : Unable to read Code Analysis output report.

This was the second time I’ve had this problem - but last time I didn’t blog the solution and had to search through Google all over again.

Found the solution in a comment on Billy’s Blog:

You can try to open failing csproj file in text mode and search for “CodeAnalysis” tags. Remove all except “CodeAnalysisRuleSet” and “RunCodeAnalysis”.

Problem solved.


blog comments powered by Disqus