CodeAnalysis, Cloned Configurations and TFS Build 2010

15 July 2010 - TFS

In case you are stumbling across a problem where your build does not succeed because the result file for code analysis cannot be found (Unable to read Code Analysis output report. Make sure that the directory is writable (default is the project output directory) be sure to not have any <CodeAnalysisLogFile> entries in your project build files. As this KB entry states those entries are generated when cloning build configurations. To remove them, unload the project, manually remove the lines from the project file, reload the project. After you check in the file and start a new build things should be better. Note that there is an <CodeAnalysisLogFile> entry for every cloned configuration, so make sure you get all of them.