I saw this question the other day and now noticed it has been closed as off-topic. To me it fits right here:
- software tools commonly used by programmers; and is
- a practical, answerable problem that is unique to software development
Visual Studio obviously fits the first bullet point. Roslyn Analyzers do as well. And I do think that it is perfectly answerable.
Here is the full text of the question:
What are the "Microsoft-recommended Roslyn analyzers" that Visual Studio prompts me to install?
In Visual Studio 2019, I was almost immediately given a popup by Microsoft saying that it was recommended for me to use Roslyn code analyzers, which supposedly provide additional diagnostics and fixes for some issues.
From a quick Google search, it looks like Roslyn code analyzers are probably already being used in my project, as they appear to come in from a variety of NuGet packages and from other sources.
I did see as well (I believe in a HackerNews article) that Roslyn was Microsoft's C# compiler for C#, which was at some point released, I'm unsure if its the default compiler or not. Separately, I'm really not sure what a code analyzer is, but I imagine it's what it sounds like.
To clarify my question, I suppose it would have to be two parts:
- What are code analyzers?
- What are Microsoft's recommended code analyzers, and why aren't they just enabled by default?