TFS Build fails with "CA0053 Error running code analysis" with its “Unable to load rule assembly”.

You can fix this, by editing the project file. Remove the following two tags from the .csproj file (they should occur at least twice: once per configuration):

<CodeAnalysisRuleDirectories>…</CodeAnalysisRuleDirectories>
<CodeAnalysisRuleSetDirectories>…</CodeAnalysisRuleSetDirectories>

Get more details here.

–Neno

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>