This repository contains a number of Roslyn diagnostic analyzers initially developed to help flesh out the design and implementation of the static analysis APIs. They have been migrated from the main dotnet/roslyn repository in order to continue and speed their further development.
Pre-release builds are available on MyGet gallery: https://dotnet.myget.org/Gallery/roslyn-analyzers.
Windows Debug | Windows Release | |
---|---|---|
master |
Created by summer 2015 interns Zoë Petard, Jessica Petty, and Daniel King
The MetaCompilation Analyzer is an analyzer that functions as a tutorial to teach users how to write an analyzer. It uses diagnostics and code fixes to guide the user through the various steps required to create a simple analyzer. It is designed for a novice analyzer programmer with some previous programming experience.
For instructions on using this tutorial, see Instructions.
Latest stable version: 1.1.0
Provides guidelines for using .NET Compiler Platform ("Roslyn") APIs.
NuGet link (no stable version yet): https://www.nuget.org/packages/Microsoft.CodeQuality.Analyzers/
Provides guidelines for using .NET Compiler Platform ("Roslyn") APIs.
NuGet link (no stable version yet): https://www.nuget.org/packages/Microsoft.NetCore.Analyzers/
Analyzers for APIs specific to .NET Core.
NuGet link (no stable version yet): https://www.nuget.org/packages/Microsoft.NetFramework.Analyzers/
Analyzers for APIs specific to the desktop .NET Framework.
NuGet link (no stable version yet): https://www.nuget.org/packages/Roslyn.Diagnostics.Analyzers/
Contains analyzers specific to the .NET Compiler Platform ("Roslyn") project.
NuGet link (no stable version yet): https://www.nuget.org/packages/Text.Analyzers/
Contains analyzers for text included in code, such as comments.
- Clone the repository
- Install NuGet packages:
msbuild /t:restore RoslynAnalyzers.sln
- Build:
msbuild RoslynAnalyzers.sln
Execute cibuild.cmd
to clean, restore, build and runs tests
Prior to submitting a pull request, ensure the build and all tests pass using BuildAndTest.proj:
msbuild BuildAndTest.proj
See VERSIONING.md for the versioning scheme for all analyzer packages built out of this repo.