Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

VS2017: getting CA0064 (No analysis was performed) #94

Open
AndreyAspose opened this issue Dec 4, 2017 · 8 comments
Open

VS2017: getting CA0064 (No analysis was performed) #94

AndreyAspose opened this issue Dec 4, 2017 · 8 comments

Comments

@AndreyAspose
Copy link

I installed Roslyn Security Guard into VS 2017 Community via Extensions UI. Trying to analyze sample project, but getting CA0064 (No analysis was performed because the specified rule set could not be loaded or did not contain any managed code analysis rules.).

See attached screenshot:

  • Roslyn SG analyzers are installed, visible and enabled
  • Still get the warning

How do I make it work?
secguard

@AndreyAspose
Copy link
Author

running from command line showed the same....

> MSBuild.exe WebGoat.NET.sln /t:Clean,Build /p:RunCodeAnalysis=true

MSBUILD : warning : CA0064 : No analysis was performed because the specified rule set could not be loaded or did not contain any managed code analysis rules. [E:\WebGoat.NET\WebGoat\WebGoat.NET.csproj]

@quincycs
Copy link

if you check one rule inside "Managed Binary Analysis" the warning will go away, but I think code analysis of RoslynSecurityGuard DOES NOT actually run. Sad, was excited for this project, not anymore.

@quincycs
Copy link

idk if its related, but I created #96 . Maybe all these analyzers are good - except when they are actually triggered to be checked seems buggy.

@SJMakin
Copy link
Contributor

SJMakin commented Dec 19, 2017

I am not able to recreate this issue. Please clarify recreation instructions.

image

@jftsaraiva
Copy link

I have the same problem.

Installed by Extension and Update in Visual Studio 2017 Professional, search for 'Roslyn' and install.
After Visual Studio reboot, I added a Rule Set with:

image

Run Code Analysis on project and always get:

image

@pich4ya
Copy link

pich4ya commented Mar 24, 2018

same problem here with VS 2017.

@Nitrosito
Copy link

You can fix it?

@duncanp-lseg
Copy link

FYI this isn't an issue with roslyn-security-guard. It affects all Roslyn analysis rules that are installed in a VSIX, and it's down to how VS/MSBuild work. See the linked SonarLint issue #719 an example of the same issue with another analyzer and an explanation of what is happening.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants