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
Next Post
Reinventing the Validation Wheel  16 Nov 2011
Prior Post
Custom Chrome  26 Oct 2011
Related Posts
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
When are you done?  18 Apr 2022
Fixing GitHub Authentication  28 Nov 2021
November 2011