C# Roslyn

Open-source C# projects categorized as Roslyn | Edit details

Top 23 C# Roslyn Projects

  • Roslyn

    The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.

    Project mention: Why does foreach on arrays and strings get lowered into a while loop that ignores IEnumerable, even though both classes implement it? | reddit.com/r/csharp | 2022-05-11

    Honestly, I don't have a clue why these would be different. I found the relevant Roslyn code here. You can see on line 719 that this is definitely intentional:

  • Uno Platform

    Build Mobile, Desktop and WebAssembly apps with C# and XAML. Today. Open source and professionally supported.

    Project mention: Uno Platform WASM project - publish to folder | reddit.com/r/unoplatform | 2022-04-22

    Hey Bocephis, glad to see you were able to figure it out and thanks for posting the resolution. For future reference, you can also ask your questions and any other general question on our community discord channel. Our complete engineering team is there. In addition, our engineering team monitors our GitHub Discussions as well.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • ScriptCS

    Write C# apps with a text editor, nuget and the power of Roslyn!

    Project mention: What is the/your current/popular choice for dotnet c# scripting ? | reddit.com/r/dotnet | 2022-03-24

    [1] http://scriptcs.net/

  • Roslynator

    A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn.

    Project mention: Modern StyleCop alternative? Advice appreciated. | reddit.com/r/dotnet | 2022-03-17
  • PeachPie

    PeachPie - the PHP compiler and runtime for .NET and .NET Core

    Project mention: Top 10 bugs found in C# projects in 2021 | dev.to | 2021-12-30

    We had to format the code for this article. You can find this method by following the link.

  • dotnet-script

    Run C# scripts from the .NET CLI.

    Project mention: Is PowerShell scripting worth learning? | reddit.com/r/csharp | 2022-04-06
  • RoslynPad

    A cross-platform C# editor based on Roslyn and AvalonEdit

    Project mention: Linqpad like solution for MacOS? | reddit.com/r/dotnet | 2022-04-17

    RoslynPad is similar but not quite as good. https://roslynpad.net/

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • omnisharp-roslyn

    OmniSharp server (HTTP, STDIO) based on Roslyn workspaces

    Project mention: blew my mind | reddit.com/r/ProgrammerHumor | 2022-03-03

    Omnisharp is the language server used by the VSCode C# plugin to provide "Syntax Highlighting, IntelliSense, Go to Definition, Find All References, etc."link

  • security-code-scan

    Vulnerability Patterns Detector for C# and VB.NET

    Project mention: Top 12 Cloud Security Tools for 2021 | dev.to | 2021-08-07

    4. Security code scan

  • jab

    C# Source Generator based dependency injection container implementation.

    Project mention: Why is no-one using Roslyn token-based code generation with Source Generators? | reddit.com/r/dotnet | 2022-02-28

    Having the same issues trying to get into source generators. I don't see too many opportunities to include it in my day-to-day development, or at least with the examples I've seen thus far. The exception being the dependency-injection based ones like https://github.com/pakrym/jab

  • RoslynClrHeapAllocationAnalyzer

    Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc.

    Project mention: Hello, I created a interpreted dynamic programming language in C#. I use a bytecode compiler and a vm for interpretation. Right now I'm trying to optimise it. Any help would be great! | reddit.com/r/csharp | 2022-03-18

    Take a look at the heap allocator analyzer: "GitHub - microsoft/RoslynClrHeapAllocationAnalyzer: Roslyn based C# heap allocation diagnostic analyzer that can detect explicit and many implicit allocations like boxing, display classes a.k.a closures, implicit delegate creations, etc." https://github.com/microsoft/RoslynClrHeapAllocationAnalyzer

  • CodeConverter

    Convert code from C# to VB.NET and vice versa using Roslyn

    Project mention: Can i convert this C# code into Visual basic? | reddit.com/r/csharp | 2022-03-18

    There's also this VS extension that does a good job (more useful for converting files): https://github.com/icsharpcode/CodeConverter

  • Buildalyzer

    A utility to perform design-time builds of .NET projects without having to think too hard about it.

    Project mention: Using Net6 and beyond to build cross-platform software, is there any reason to have multi-targeted frameworks anymore? | reddit.com/r/dotnet | 2022-03-29

    So I am working with Buildalzer package (Pretty cool, worth a peek, its not mine) which helps examine code in projects, and MSBuild type things.

  • roslyn-sdk

    Roslyn-SDK templates and Syntax Visualizer

    Project mention: Enable Preview Version In Visual Studio 2022 | reddit.com/r/dotnet | 2022-05-09
  • Meziantou.Analyzer

    A Roslyn analyzer to enforce some good practices in C#.

    Project mention: Cancellation Token | reddit.com/r/csharp | 2022-04-07

    I can recommend this library of roslyn analzers. There is also an analyzer for cancellation tokens: https://github.com/meziantou/Meziantou.Analyzer

  • Mockaco

    🐵 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting

    Project mention: Is there a better way to allow testing while using an outside API | reddit.com/r/csharp | 2022-01-04

    You can use https://github.com/natenho/Mockaco

  • mapperly

    A .NET source generator for generating object mappings. Trimming save. Inspired by MapStruct.

    Project mention: A .NET source generator for generating object mappings. Trimming save and fast. Inspired by MapStruct. | reddit.com/r/programming | 2022-02-28
  • Waf DotNetPad

    The Waf DotNetPad is a simple and fast code editor that makes fun to program with C# or Visual Basic.

  • replay-csharp

    An editable C# REPL (Read Eval Print Loop) powered by Roslyn and .NET Core

    Project mention: csharprepl: A command-line Read-Eval-Print-Loop for C# with syntax highlighting and NuGet support | reddit.com/r/csharp | 2021-05-31

    First: awesome work! Already had a look at the project https://github.com/waf/replay-csharp before that post.

  • SimpleStubs

    *SimpleStubs* is a simple mocking framework that supports Universal Windows Platform (UWP), .NET Core and .NET framework. SimpleStubs is currently developed and maintained by Microsoft BigPark Studios in Vancouver. (by microsoft)

  • CsharpMacros

    A simple template base system of macros for C# that can be executed in design time

  • Durian

    Durian is a collection of Roslyn-based analyzers and source generators that extend the default capabilities of C#.

    Project mention: I recreated C++'s default type parameters using Roslyn | reddit.com/r/csharp | 2021-06-03

    Repo on Github

  • generator-start

    template repository for a roslyn source generator

    Project mention: Does anyone know how to write a source generator completely from scratch? | reddit.com/r/csharp | 2021-09-28

    I've tried following this MS article about source generators to a tee, but it just doesn't work. I then got linked this template, but it contains a ton of stuff I have no idea what it does and why it may or may not be required for the generator to function. Does anyone actually know the minimum amount of stuff that is required for a source generator to work and how to write one completely from scratch without any templates? I would really like to avoid cluttering up my solution with unnecessary files.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-05-11.

C# Roslyn related posts


What are some of the best open-source Roslyn projects in C#? This list will help you:

Project Stars
1 Roslyn 15,842
2 Uno Platform 6,469
3 ScriptCS 2,370
4 Roslynator 2,343
5 PeachPie 2,015
6 dotnet-script 1,998
7 RoslynPad 1,604
8 omnisharp-roslyn 1,323
9 security-code-scan 733
10 jab 673
11 RoslynClrHeapAllocationAnalyzer 599
12 CodeConverter 570
13 Buildalyzer 448
14 roslyn-sdk 379
15 Meziantou.Analyzer 355
16 Mockaco 191
17 mapperly 185
18 Waf DotNetPad 115
19 replay-csharp 67
20 SimpleStubs 66
21 CsharpMacros 50
22 Durian 20
23 generator-start 12
Find remote jobs at our new job board 99remotejobs.com. There are 9 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives