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 →
Top 23 C# Roslyn Projects
-
Roslyn
The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
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.
-
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.
-
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: 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.
-
-
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
-
Also check out free open source alternative RoslynPad. https://roslynpad.net/
-
-
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.
-
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...
-
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! 🚀
To enable the latest C# language features with legacy target frameworks (such as .NET Framework 4), you can use PolySharp.
-
-
Jab provides a C# Source Generator based dependency injection container implementation.
-
Project mention: Meziantou.Analyzer alternatives - Roslynator and sonar-dotnet | libhunt.com/r/Meziantou.Analyzer | 2024-09-28
-
-
-
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.
-
Buildalyzer
A utility to perform design-time builds of .NET projects without having to think too hard about it.
-
-
-
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
-
-
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.
-
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.
-
Waf DotNetPad
The Waf DotNetPad is a simple and fast code editor that makes fun to program with C# or Visual Basic.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
C# Roslyn discussion
C# Roslyn related posts
-
How to update library and get swamped with this task.
-
PeachPie Compiler: Compile and run PHP on top of .NET runtime
-
Meziantou.Analyzer alternatives - Roslynator and sonar-dotnet
3 projects | 28 Sep 2024 -
Am writing a software used to manage elections in Kenya
-
The main features I want for C#
-
Show HN: ClifferBasic, a simple BASIC interpreter as a .NET REPL
-
LINQPad – The .NET Programmer's Playground
-
A note from our sponsor - CodeRabbit
coderabbit.ai | 18 Feb 2025
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 |