Suchiman / SerilogAnalyzer

Roslyn-based analysis for code using the Serilog logging library. Checks for common mistakes and usage problems.
Apache License 2.0
309 stars 29 forks source link

Installation instruction #44

Open lugospod opened 5 years ago

lugospod commented 5 years ago

Hi,

Is there an installation guide? I have install the nuget package, and after that tried with VSIX... none of the options resulted in any analysis. Am I supposed to do some additional steps?

I have VS 2019 Comm. Edt.

Thank you

Suchiman commented 5 years ago

No, you should only need to install the VSIX or the nuget package to have analysis results popping up. Just to make sure, you're using Serilog, not Microsoft.Extensions.Logging, right?

aaronbond-payroc commented 2 years ago

@Suchiman reg. the installation - when installing it on a specific project, I'm seeing the analyzer run on any dependencies of that project but that was not my intention. In this case, we have a unit test project that is referencing the project with the analyzer, but the unit test project is throwing Serilog issues that don't really apply. Is that expected behaviour?

Suchiman commented 2 years ago

@bond-a i suppose this is because on SDK style projects, references are transitive, do any of the solutions described here work for you? https://stackoverflow.com/a/60852224