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-11Honestly, 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-22Hey 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.
-
Project mention: What is the/your current/popular choice for dotnet c# scripting ? | reddit.com/r/dotnet | 2022-03-24
[1] http://scriptcs.net/
-
Project mention: Modern StyleCop alternative? Advice appreciated. | reddit.com/r/dotnet | 2022-03-17
-
We had to format the code for this article. You can find this method by following the link.
-
-
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 is the language server used by the VSCode C# plugin to provide "Syntax Highlighting, IntelliSense, Go to Definition, Find All References, etc."link
-
4. Security code scan
-
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-18Take 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
-
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-29So I am working with Buildalzer package (Pretty cool, worth a peek, its not mine) which helps examine code in projects, and MSBuild type things.
-
-
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-04You 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.
-
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)
-
-
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-03Repo on Github
-
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.
C# Roslyn related posts
- Why does foreach on arrays and strings get lowered into a while loop that ignores IEnumerable, even though both classes implement it?
- Enable Preview Version In Visual Studio 2022
- Linqpad like solution for MacOS?
- RoslynPad on macOS?
- Is PowerShell scripting worth learning?
- Using Net6 and beyond to build cross-platform software, is there any reason to have multi-targeted frameworks anymore?
- how to take multiple events and send a single email
Index
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 |
Are you hiring? Post a new remote job listing for free.