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

Errors are not showing on VB .NET projects #47

Open Lindsey1986 opened 5 years ago

Lindsey1986 commented 5 years ago

It looks like the analyzer is not detecting the errors in VB .NET projects, only in C# projects...

Example code in VB (no errors detected): image


Same code C#: image

Suchiman commented 5 years ago

Yes, that is expected. Most of SerilogAnalyzer is a syntax analyzer so adding support for VB.NET would require duplicating and rewriting everything or dropping support for old versions of VS / roslyn and investigate the possibility of an IOperation based analyzer.

Lindsey1986 commented 5 years ago

Oh, I see. OK, thank you @Suchiman. Feel free to close this issue if VB .NET support is not something you plan to have