The Best .NET Static Analysis Tools (Linters/Formatters)
We rank 11 .NET linters, code analyzers, formatters, and more. Find and compare tools like Mega-Linter, ThreatMapper, Roslyn Analyzers, and more. Please rate and review tools that you've used. This helps others find the best tools for their projects.
2 .NET Tools
Generate a candidate suite of tests for your .NET code.
Pex and Moles
Pex automatically generates test suites with high code coverage using automated white box analysis.
9 Multi-Language Tools
Mega-Linter can handle any type of project thanks to its 70+ embedded Linters, its advanced reporting, runnable on any CI system or locally, with assisted installation and configuration, able to apply formatting and fixes
Vulnerability Scanner and Risk Evaluation for containers, serverless and hosts at runtime. ThreatMapper generates runtime BOMs from dependencies and operating system packages, matches against multiple threat feeds, scans for unprotected secrets, and scores issues based on severity and risk-of-exploit.
Roslyn-based implementation of FxCop analyzers.
Commercial Static Code Analysis system doesn't require building the source code or pre-compilation.
Code creation, debugging, navigation, refactoring, analysis and visualization tools that use the Roslyn engine in Visual Studio 2015 and up.
A code formatter for .NET. Preferences will be read from an
.editorconfig file, if present, otherwise a default set of preferences will be used. At this time dotnet-format is able to format C# and Visual Basic projects with a subset of supported
A static file linter that allows you to write custom rules using regular expressions (RegEx).
Code Pulse is a free real-time code coverage tool for penetration testing activities by OWASP and Code Dx (GitHub).
Help make this list better
Frequently Asked Questions
What are .NET tools?
.NET Framework (pronounced as "dot net") is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large class library called Framework Class Library (FCL) and provides language interoperability (each language can use code written in other languages) across several programming languages.
What are the best .NET static analysis tools and linters?
The most popular .NET tools ranked by user votes are: Mega-Linter, ThreatMapper, Roslyn Analyzers, Offensive 360, CodeRush.
Which .NET services are free for open source projects?
Commercial services with a free plan for open source include Mega-Linter, ThreatMapper, Roslyn Analyzers, dotenet-format, relint, Code Pulse.