C# Roslyn

Open-source C# projects categorized as Roslyn

Top 23 C# Roslyn Projects

  1. Roslyn

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

    Project mention: How to update library and get swamped with this task. | dev.to | 2024-12-27

    MSBuildLocator for .NET Framework can only search for MSBuild 15, 16, 17 (Visual Studio 2017, 2019, 2022). So, if a user has a fairly old project and is using Visual Studio 2015, Roslyn won't be able to find a suitable MSBuild. Even if the project is fully built on the system, Roslyn simply won't work. We've reported this issue on GitHub. To cut a long story short, the devs don't prioritize it, citing that VS 2015 and earlier versions are just outdated. However, it turns out that if the user has the .NET SDK, Roslyn starts using a backup plan. If you have a .NET Framework legacy project, Roslyn will try to use BuildHost for .NET Core. Most of the time, this works fine, but issues can occur if there's something that isn't supported by MSBuild for .NET Core. You'll see this in the description of the third issue.

  2. Nutrient

    Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers. Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.

    Nutrient logo
  3. Uno Platform

    Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!

    Project mention: Servo in 2024: stats, features and donations | news.ycombinator.com | 2025-02-05
  4. Roslynator

    Roslynator is a set of code analysis tools for C#, powered by Roslyn.

    Project mention: Meziantou.Analyzer alternatives - Roslynator and sonar-dotnet | libhunt.com/r/Meziantou.Analyzer | 2024-09-28

    Roslynator is a set of code analysis tools for C#, powered by Roslyn.

  5. mapperly

    A .NET source generator for generating object mappings. No runtime reflection.

  6. dotnet-script

    Run C# scripts from the .NET CLI.

    Project mention: Java in the Small | news.ycombinator.com | 2024-12-18

    It should be able to! F# has "gradual typing" and full type inference which means you often do not need to specify the types at all, and it also happens to be whitespace-sensitive language much like Python is. Both of these aspects should make it feel quite familiar while also giving you full advantages of static typing.

    One thing to note is I find `dotnet fsi {some script name}.fsx` taking more time to start than ideal - up to 800ms is just too much, normal .NET applications usually start in a fraction of this.

    I recently posted a submission for "FSharpPacker" that lets you compile F# scripts to standalone applications (either runtime-dependent, self-contained or fully native binaries, much like Go), it also has some comments on getting the best mileage out of it: https://news.ycombinator.com/item?id=42304835

    Probably the best feature that also comes with scripting (both C# and F#) is "inline" nuget references e.g. #r "nuget: FSharp.Control.TaskSeq" which will automatically pull the dependency from nuget without ever dealing with manually installing it or tinkering with build system in any other way.

    Some additional links:

    https://learn.microsoft.com/en-us/dotnet/fsharp/tools/fsharp...

    https://github.com/dotnet-script/dotnet-script (C# is also a quite productive language for scripting and small programs because of top-level statements, record types, pattern matching and many other functional features though perhaps not as strongly represented as in F#)

    https://github.com/waf/CSharpRepl

  7. RoslynPad

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

    Project mention: LINQPad – The .NET Programmer's Playground | news.ycombinator.com | 2024-06-23

    Also check out free open source alternative RoslynPad. https://roslynpad.net/

  8. ScriptCS

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

  9. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  10. PeachPie

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

    Project mention: PeachPie Compiler: Compile and run PHP on top of .NET runtime | news.ycombinator.com | 2024-10-08

    we have attempted to use it for that, but it was really hard and we ended up rewriting from scratch.

    The activity graph on GitHub says it is mostly dead. There is some activity, but at best it is in maintenance mode. It used to be sponsored, but not anymore IIRC

    https://github.com/peachpiecompiler/peachpie/graphs/contribu...

  11. PolySharp

    PolySharp provides generated, source-only polyfills for C# language features, to easily use all runtime-agnostic features downlevel. Add a reference, set your C# version to latest and have fun! 🚀

    Project mention: Dealing with NullReferenceException | dev.to | 2024-05-22

    To enable the latest C# language features with legacy target frameworks (such as .NET Framework 4), you can use PolySharp.

  12. omnisharp-roslyn

    OmniSharp server (HTTP, STDIO) based on Roslyn workspaces

  13. jab

    C# Source Generator based dependency injection container implementation.

    Project mention: Pure.DI VS jab - a user suggested alternative | libhunt.com/r/Pure.DI | 2024-09-24

    Jab provides a C# Source Generator based dependency injection container implementation.

  14. Meziantou.Analyzer

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

    Project mention: Meziantou.Analyzer alternatives - Roslynator and sonar-dotnet | libhunt.com/r/Meziantou.Analyzer | 2024-09-28
  15. security-code-scan

    Vulnerability Patterns Detector for C# and VB.NET

  16. CodeConverter

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

  17. sonar-dotnet

    Code analyzer for C# and VB.NET projects

    Project mention: Default Interface Implementations in C#: Where Inheritance Goes to Troll You | dev.to | 2024-12-09

    Leverage Static Analysis Tools: Use tools like Roslyn analyzers (e.g. Roslyn Analyzers for C# or SonarAnalyzer for .NET) to catch risky patterns.

  18. Buildalyzer

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

  19. PluginFramework

    Everything is a Plugin in .NET

  20. roslyn-sdk

    Roslyn-SDK templates and Syntax Visualizer

  21. 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

  22. LinqGen

    Alloc-free and fast replacement for Linq, with code generation

  23. Westwind.Scripting

    Dynamically compile and execute C# Code and Expressions at runtime. Also includes a light weight script templating engine using Handlebar style C# syntax.

  24. Enum.Source.Generator

    A C# source generator to create an enumeration class from an enum type. With this package, you can work on enums very, very fast without using reflection.

  25. Waf DotNetPad

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

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

C# Roslyn discussion

Log in or Post with

C# Roslyn related posts

  • How to update library and get swamped with this task.

    2 projects | dev.to | 27 Dec 2024
  • PeachPie Compiler: Compile and run PHP on top of .NET runtime

    4 projects | news.ycombinator.com | 8 Oct 2024
  • Meziantou.Analyzer alternatives - Roslynator and sonar-dotnet

    3 projects | 28 Sep 2024
  • Am writing a software used to manage elections in Kenya

    1 project | news.ycombinator.com | 31 Aug 2024
  • The main features I want for C#

    1 project | dev.to | 27 Jul 2024
  • Show HN: ClifferBasic, a simple BASIC interpreter as a .NET REPL

    4 projects | news.ycombinator.com | 25 Jul 2024
  • LINQPad – The .NET Programmer's Playground

    4 projects | news.ycombinator.com | 23 Jun 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 18 Feb 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

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

# Project Stars
1 Roslyn 19,266
2 Uno Platform 9,200
3 Roslynator 3,151
4 mapperly 3,152
5 dotnet-script 2,826
6 RoslynPad 2,565
7 ScriptCS 2,477
8 PeachPie 2,398
9 PolySharp 1,905
10 omnisharp-roslyn 1,823
11 jab 1,059
12 Meziantou.Analyzer 979
13 security-code-scan 949
14 CodeConverter 852
15 sonar-dotnet 819
16 Buildalyzer 626
17 PluginFramework 568
18 roslyn-sdk 520
19 Mockaco 339
20 LinqGen 297
21 Westwind.Scripting 223
22 Enum.Source.Generator 187
23 Waf DotNetPad 141

Sponsored
Nutrient – The #1 PDF SDK Library, trusted by 10K+ developers
Other PDF SDKs promise a lot - then break. Laggy scrolling, poor mobile UX, tons of bugs, and lack of support cost you endless frustrations. Nutrient’s SDK handles billion-page workloads - so you don’t have to debug PDFs. Used by ~1 billion end users in more than 150 different countries.
www.nutrient.io

Did you know that C# is
the 10th most popular programming language
based on number of references?