Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a custom code analyzer to a project without nuget or VSIX?

I want to write a custom code analyzer in Visual Studio 2015 for a C# ConsoleApplication. For this reason I don't want to create a seperate "Analyzer with Code Fix" project from template, because this requires to add this analyzer in my projects as nuget package.

enter image description here
Is it possible, to add a analyzer reference manually? I would like to reference the analyzer without nuget.

like image 499
Michi-2142 Avatar asked Nov 24 '16 07:11

Michi-2142


Video Answer


1 Answers

If you add an analyzer as Nuget and check the content of your project, you'll see that only an <Analyzer Include="..." /> item is added. You can do the same manually. Also, you can do this in the .csproj.user file as well, so you can also do it locally, and not commit this change to your SCM.

like image 200
Tamas Avatar answered Oct 18 '22 22:10

Tamas