This repository contains the demo code from the article series Exploring Roslyn.
For your convenience, here are the articles:
- Exploring Roslyn .NET Compiler Platform SDK
- Getting Started With Roslyn Analyzers
- Fixing Mistakes With Roslyn Code Fixes
- Testing Roslyn Analyzers and Code Fixes
To get started with this solution,
- Make sure you have
net7.0
installed. You can download the dotnet SDK here. - Navigate to the root of the repository and run
dotnet build
. - Run tests using
dotnet test
command from the repository root. - Open the
ExploringRoslyn.sln
solution in your favourite IDE. ** - Explore the demos.
** Visual Studio, Rider, and VSCode should work without issues.
The solution consists of several projects intended to showcase Roslyn.
DemoConsoleApp
- a simple console application intended to be used as a playground and explore the implemented Roslyn componentsEmptyLinesAnalyzerAndCodeFix
- Roslyn analyzer project containing the analyzer and a code fix for multiple empty lines diagnosticRoslynTests
- NUnit test project intended for testing Roslyn components developed in this solution
Feel free to create an issue or reach out if you feel like you could contribute to this project in any way.
#dotnet
#roslyn
#csharp
#codingisfun
โ