Roslyn
MSBuild
Our great sponsors
Roslyn | MSBuild | |
---|---|---|
156 | 19 | |
18,482 | 5,127 | |
0.8% | 0.8% | |
10.0 | 6.9 | |
1 day ago | about 13 hours ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Roslyn
-
Generating C# code programmatically
Recently, while creating some experimental C# source code generators (xafero/csharp-generators), I was just concatenating strings together. Like you do, you know, if things have to go very quickly. If you have a simple use case, use a formatted multi-line string or some template library like scriban. But I searched for a way to generate more and more complicated logic easily - like for example, adding raw SQL handler methods to my pre-generated DBSet-like classes for my ADO.NET experiment. You could now say: Use Roslyn and that's really fine if you look everything up in a website like SharpLab, which shows immediately the syntax tree of our C# code.
- Still No REPL for .NET Core in Visual Studio
-
Roslyn VS Metalama.Compiler - a user suggested alternative
2 projects | 7 Dec 2023
- Por debaixo do capô: async/await e as mágicas do compilador csharp
-
Use Case Driven Development with Low-Code
At runtime, the Case C# expressions are embedded into a function and dynamically compiled into an assembly using the Roslyn C# compiler. Then the function that contains the expression is called (e.g. CaseAvailableFunction.Availablle()). At runtime, the function provides various methods to access stored case values as well as the current input data.
- Interceptors
- Tentative C# 12 feature list · dotnet/roslyn · Discussion #69074
- Do you guys think this programmer is right about dotnet?
-
How to combine codes that other people have worked on?
I like to use the roslyn coding practices for C# projects (https://github.com/dotnet/roslyn/blob/main/docs/wiki/Contributing-Code.md)
MSBuild
-
Sharing Saturday #459
I did get confirmation that the actual kill has been postponed to .Net 9.0 rather than .Net 8.0 . However, that PR is factually wrong regarding when System.Runtime.Serialization use became opt-in -- I had to counter-adjust Rogue Survivor Revived to opt into using System.Runtime.Serialization for .Net 7.0, last November i.e. Nov 2022.
-
Did anyone figure out a way to compile .NET Core with WPF on Linux?
Like this https://github.com/dotnet/msbuild/blob/d0060335c1fb2f0523b1cf4656c464c5c4316783/src/Framework/NativeMethods.cs
- Why does Microsoft still insist on using XML for configuration files like `.csproj`, etc.?
-
[Copilot has] been a massive productivity improvement to our senior devs, and I got so used to it that it's an annoyance when Copilot doesn't respond.
Here is a taste of what to expect: https://github.com/dotnet/msbuild
-
Resources to learn the F# ecosystem
The main thing they do is to list projects so that you can open a solution and see a set of projects, or build a solution and build everything there. They also give a lot of customization and fortunately it's rare that you need to know anything about that. It does feel somewhat unnecessary since you should be able to open a project with its dependencies. Hopefully solution files are going to be cleaned up: https://github.com/dotnet/msbuild/issues/1730
-
Build to order? Checking MSBuild for the second time
Since the previous check, the project has grown a lot. Our analyzer has become more advanced, too. This only makes this task more interesting! Despite the high quality of the MSBuild product and the well-known name of its creator, we again managed to find some issues in MSBuild's source code. The project is almost entirely written in C#. You can see it on GitHub. We took the code from this commit.
- Gauging broader interest in a .sln file generator based on a new DSL?
-
New format for solution (.sln) files
relevant github issue: https://github.com/dotnet/msbuild/issues/1730
-
How can I compile a C# program with a different version of glibc?
msbuild is the "make" system, but for .Net. Those .csproj files are just makefiles by another name. Also, msbuild is not Windows-only. The readme specifically states that it can run on Unix (and Unix-like) systems that support .Net Core.
-
The most interesting C# / .NET blogs and websites
You can't do without source files when you want to better understand what is happening "under the hood" of a particular system. For example, do you want to improve your understanding of how types from the standard library work? The source code of .NET Framework and .NET will help you to do that. Do you want to dig deeper into the compiler? No problem - here is the Roslyn's source code at your service. Do you need to look inside the build system? Here you go - the MSBuild code is also open-source. By the way, if you are interested in build processes, you may also find MSBuild Structured Log Viewer useful. It's a tool that allows you to work with MSBuild build logs in a convenient format.
What are some alternatives?
Mono-basic - Visual Basic Compiler and Runtime
Cake - :cake: Cake (C# Make) is a cross platform build automation system.
F# - Please file issues or pull requests here: https://github.com/dotnet/fsharp
NUKE - 🏗 The AKEless Build System for C#/.NET
ClojureCLR - A port of Clojure to the CLR, part of the Clojure project
Psake - A build automation tool written in PowerShell
Bridge.NET - :spades: C# to JavaScript compiler. Write modern mobile and web apps in C#. Run anywhere with Bridge.NET.
FAKE - FAKE - F# Make
CSharpObfuscator - CSharp Obfuscator protects your .NET application code through obfuscation transforms, while maintaining debugging abilities for quality assurance testing.
CS Make - Sake Build
Roslyn-linq-rewrite - Compiles C# code by first rewriting the syntax trees of LINQ expressions using plain procedural code, minimizing allocations and dynamic dispatch.
FlubuCore - A cross platform build and deployment automation system for building projects and executing deployment scripts using C# code.