maxswitcher
maxswitcher

Reputation: 1737

Suppress specific analysis error in Visual Studio 2015

I'm implemented ICompileModule, which allow using generic attributes. It works fine (Build successful), but Visual Studio mark this code as error (at analysis step).

Error 1

Error 2

Error 3

How i can hide/suppress these errors? May be using Visual Stuido/ReSharper plugin?

Upvotes: 2

Views: 919

Answers (1)

Amadeusz Wieczorek
Amadeusz Wieczorek

Reputation: 3207

This is not the answer to this particular question, but it may help others who came here via the question's title.

Some errors are created by Roslyn Analyzers that can be toggled:

Right-click on project's References > Analyzers , "Open Active Rule Set" first step

Then toggle the error in question

second step

Unfortunately for @maxswitcher, the error in question is not handled by Roslyn Analyzers.

Upvotes: 1

Related Questions