Roslyn VS MSBuild

Compare Roslyn vs MSBuild and see what are their differences.


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


The Microsoft Build Engine (MSBuild) is the build platform for .NET and Visual Studio. (by dotnet)
Our great sponsors
  • SonarLint - Clean code begins in your IDE with SonarLint
  • Mergify - Tired of breaking your main and manually rebasing outdated pull requests?
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
Roslyn MSBuild
152 19
17,819 5,020
1.1% 0.4%
10.0 8.9
2 days ago 1 day ago
C# C#
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.


Posts with mentions or reviews of Roslyn. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-25.


Posts with mentions or reviews of MSBuild. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-24.
  • Sharing Saturday #459
    5 projects | /r/roguelikedev | 24 Mar 2023
    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?
    3 projects | /r/dotnet | 16 Dec 2022
    Like this
  • Resources to learn the F# ecosystem
    3 projects | /r/fsharp | 15 Oct 2022
    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:
  • The most interesting C# / .NET blogs and websites
    4 projects | | 6 Jan 2022
    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.
  • OWASP Top Ten and Software Composition Analysis (SCA)
    3 projects | | 22 Oct 2021
    At the moment, we plan to implement the specified functionality for the C# analyzer. It's easy to obtain the list of dependencies for a C# project. Roslyn helps us a lot — our analyzer is built on its base. To be more precise, the main factor is the use of the same build platform (MSBuild) and a compiler for all C# projects. At the same time Roslyn is closely related to MSBuild. This makes obtaining the dependencies list trivial.
  • Standard File/Project Structure?
    4 projects | /r/csharp | 20 May 2021 is up there too.

What are some alternatives?

When comparing Roslyn and MSBuild you can also consider the following projects:

Cake - :cake: Cake (C# Make) is a cross platform build automation system.

NUKE - 🏗 The AKEless Build System for C#/.NET

Mono-basic - Visual Basic Compiler and Runtime

F# - Please file issues or pull requests here:

Psake - A build automation tool written in PowerShell

FAKE - FAKE - F# Make

Roslyn-linq-rewrite - Compiles C# code by first rewriting the syntax trees of LINQ expressions using plain procedural code, minimizing allocations and dynamic dispatch.

Bridge.NET - :spades: C# to JavaScript compiler. Write modern mobile and web apps in C#. Run anywhere with Bridge.NET.

ClojureCLR - A port of Clojure to the CLR, part of the Clojure project

CSharpObfuscator - CSharp Obfuscator protects your .NET application code through obfuscation transforms, while maintaining debugging abilities for quality assurance testing.

CS Make - Sake Build

VisualFSharp - The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio