Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS 2019 - seeing many warnings AD0001 from Microsoft.CodeAnalysis.CSharp.Analyzers

I get this exact warning many time in the Error List pane in VS 2019 (v16.4.2).

How can i resolve the warnings ?

AD0001 Analyzer 'Microsoft.CodeAnalysis.CSharp.Analyzers.FixAnalyzers.CSharpFixerWithFixAllAnalyzer' threw an exception of type 'System.TypeInitializationException
like image 260
Menahem Avatar asked Jan 09 '20 14:01

Menahem


1 Answers

its resolved,

An old version of the package was pulled in by an indirect reference.

adding the package as a direct dependency forces the use of the new version - resolving the warning.

link to the github issue i opened

like image 181
Menahem Avatar answered Sep 28 '22 05:09

Menahem