2

I'm using a new roslyn's Code Analyzer feature. I have a ruleset with only one rule CA1008: Enums should have zero value.. This rule is from Microsoft.AnalyzerPowerPack analyzer.

When I run Code Analysis in visual studio, it claims that

Warning CA0064 CA0064 : No analysis was performed because the specified rule set could not be loaded or did not contain any managed code analysis rules.

When I open some file, the warning normally pops up into the error window. How can I enforce VS to give me the results for all the files within the project, not just the opened ones?

svick
  • 236,525
  • 50
  • 385
  • 514
ondrej
  • 967
  • 7
  • 26
  • You now have *two* code analyzers, VS2015 keeps on giving. One that runs when you build your app, the Roslyn one, another that runs when you use the menu. So you probably just want to rebuild your project. – Hans Passant Nov 20 '15 at 18:55
  • You're sure you have selected 'Entire Solution' instead of 'Opened Documents' in the Error List window? – Jeroen Vannevel Nov 20 '15 at 21:26
  • 1
    See [How to: Enable and Disable Full Solution Analysis for Managed Code](https://msdn.microsoft.com/en-us/library/mt709421.aspx) – Kris Vandermotten May 12 '17 at 14:04

0 Answers0