Microsoft.CodeAnalysis 2.0.0-beta1

Prefix Reserved
This is a prerelease version of Microsoft.CodeAnalysis.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Microsoft.CodeAnalysis --version 2.0.0-beta1
                    
NuGet\Install-Package Microsoft.CodeAnalysis -Version 2.0.0-beta1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Microsoft.CodeAnalysis" Version="2.0.0-beta1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.CodeAnalysis" Version="2.0.0-beta1" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.CodeAnalysis" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Microsoft.CodeAnalysis --version 2.0.0-beta1
                    
#r "nuget: Microsoft.CodeAnalysis, 2.0.0-beta1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Microsoft.CodeAnalysis@2.0.0-beta1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Microsoft.CodeAnalysis&version=2.0.0-beta1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Microsoft.CodeAnalysis&version=2.0.0-beta1&prerelease
                    
Install as a Cake Tool

.NET Compiler Platform ("Roslyn").

     This is the all-in-one package (a superset of all assemblies). You can install any of these sub-packages if you only want part of the functionality:      
       - "Microsoft.CodeAnalysis.CSharp.Workspaces" (C# compiler + services)      
       - "Microsoft.CodeAnalysis.VisualBasic.Workspaces" (VB compiler + services)      
       - "Microsoft.CodeAnalysis.Compilers" (both compilers)       
       - "Microsoft.CodeAnalysis.CSharp" (only the C# compiler)      
       - "Microsoft.CodeAnalysis.VisualBasic (only the VB compiler)

Supported Platforms:
- .NET Framework 4.5

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages (560)

Showing the top 5 NuGet packages that depend on Microsoft.CodeAnalysis:

Package Downloads
JasperFx.RuntimeCompiler

Runtime Roslyn Compilation and Code Generation Chicanery

eXpandSecurity

Security Module / eXpandFramework. To debug in VS enable Source Server support under Tools/Options/Debugging.

LamarCompiler

Runtime Roslyn Compilation and Code Generation Chicanery

eXpandLogic

JobSheduler Module / eXpandFramework. To debug in VS enable Source Server support under Tools/Options/Debugging.

eXpandValidation

Validation Module / eXpandFramework. To debug in VS enable Source Server support under Tools/Options/Debugging.

GitHub repositories (155)

Showing the top 20 popular GitHub repositories that depend on Microsoft.CodeAnalysis:

Repository Stars
icsharpcode/ILSpy
.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
dotnet/maui
.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
microsoft/garnet
Garnet is a remote cache-store from Microsoft Research that offers strong performance (throughput and latency), scalability, storage, recovery, cluster sharding, key migration, and replication features. Garnet can work with existing Redis clients.
dotnet/orleans
Cloud Native application framework for .NET
unoplatform/uno
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!!
graphql-dotnet/graphql-dotnet
GraphQL for .NET
tModLoader/tModLoader
A mod to make and play Terraria mods. Supports Terraria 1.4 (and earlier) installations
dotnet/docfx
Static site generator for .NET API documentation.
Cysharp/MagicOnion
Unified Realtime/API framework for .NET platform and Unity.
dotnet/samples
Sample code referenced by the .NET documentation
discord-net/Discord.Net
An unofficial .Net wrapper for the Discord API (https://discord.com/)
microsoft/Power-Fx
Power Fx low-code programming language
dafny-lang/dafny
Dafny is a verification-aware programming language
dotnet/interactive
.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
dotnet/extensions
This repository contains a suite of libraries that provide facilities commonly needed when creating production-ready applications.
isadorasophia/murder
Murder is a pixel art ECS game engine.
dotnet/sdk
Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
PomeloFoundation/Pomelo.EntityFrameworkCore.MySql
Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector
dotnet/android
.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
Version Downloads Last Updated
5.0.0 204,579 11/18/2025
5.0.0-2.final 6,165 10/9/2025
4.14.0 2,731,972 5/15/2025
4.13.0 1,126,182 2/24/2025
4.12.0 1,430,482 12/4/2024
4.12.0-3.final 11,493 10/29/2024
4.12.0-2.final 12,376 9/17/2024
4.12.0-1.final 14,925 8/14/2024
4.11.0 4,235,012 8/15/2024
4.11.0-3.final 4,766 7/31/2024
4.11.0-2.final 7,078 6/19/2024
4.10.0 1,518,326 6/10/2024
4.10.0-3.final 9,299 4/29/2024
4.10.0-2.final 9,288 3/19/2024
4.10.0-1.final 458 3/18/2024
4.9.2 2,169,313 3/2/2024
4.9.0-3.final 17,820 1/22/2024
4.9.0-2.final 53,792 12/16/2023
4.9.0-1.final 527 12/13/2023
4.8.0 5,940,226 11/22/2023
4.8.0-3.final 29,013 11/3/2023
4.8.0-2.final 22,040 9/20/2023
4.8.0-1.final 4,756 9/9/2023
4.7.0 2,117,468 8/18/2023
4.7.0-2.final 26,819 6/20/2023
4.7.0-1.final 29,185 5/20/2023
4.6.0 1,782,330 5/16/2023
4.6.0-1.final 210,685 3/3/2023
4.5.0 2,259,985 2/24/2023
4.5.0-2.final 23,608 1/6/2023
4.4.0 1,842,175 11/14/2022
4.4.0-4.final 96,075 10/22/2022
4.4.0-2.final 71,727 9/19/2022
4.4.0-1.final 4,221 8/16/2022
4.3.1 1,008,673 9/30/2022
4.3.0-3.final 4,225 7/26/2022
4.3.0-2.final 6,456 6/22/2022
4.3.0-1.final 18,234 5/10/2022
4.2.0 1,830,508 5/13/2022
4.2.0-4.final 7,868 4/27/2022
4.2.0-2.final 31,222 3/25/2022
4.2.0-1.final 9,035 2/18/2022
4.1.0 3,028,601 2/16/2022
4.1.0-3.final 9,647 1/27/2022
4.1.0-1.final 47,800 11/19/2021
4.0.1 2,542,937 11/9/2021
4.0.0-6.final 10,893 10/20/2021
4.0.0-5.final 1,501 10/11/2021
4.0.0-4.final 5,939 9/15/2021
4.0.0-3.final 2,421 8/12/2021
4.0.0-2.final 2,050 7/20/2021
4.0.0-1.final 18,186 7/7/2021
3.11.0 1,543,447 8/11/2021
3.11.0-3.final 800 7/15/2021
3.11.0-1.final 6,885 6/14/2021
3.10.0 306,749 6/11/2021
3.10.0-3.final 12,306 5/13/2021
3.10.0-2.final 1,743 4/20/2021
3.10.0-1.final 21,530 3/3/2021
3.9.0 1,459,053 3/2/2021
3.9.0-5.final 1,783 2/24/2021
3.9.0-4.final 1,515 2/10/2021
3.9.0-3.final 4,890 1/20/2021
3.9.0-2.final 6,246 12/10/2020
3.9.0-1.final 67,871 12/4/2020
3.8.0 2,997,680 11/13/2020
3.8.0-5.final 10,155 10/23/2020
3.8.0-4.final 2,668 10/13/2020
3.8.0-3.final 16,757 9/16/2020
3.8.0-2.final 1,366 9/1/2020
3.7.0 2,015,643 8/5/2020
3.7.0-4.final 6,052 7/14/2020
3.7.0-3.final 3,113 7/2/2020
3.7.0-2.final 2,934 6/15/2020
3.7.0-1.final 42,511 5/19/2020
3.6.0 645,930 5/19/2020
3.6.0-4.final 4,252 5/4/2020
3.6.0-3.final 1,257 4/16/2020
3.6.0-2.final 1,306 3/26/2020
3.6.0-1.final 3,106 3/17/2020
3.5.0 613,204 3/16/2020
3.5.0-beta3-final 14,822 2/19/2020
3.5.0-beta2-final 18,727 1/23/2020
3.5.0-beta1-final 12,067 12/3/2019
3.4.0 993,853 12/3/2019
3.4.0-beta4-final 13,532 11/15/2019
3.4.0-beta3-final 3,785 11/4/2019
3.4.0-beta2-final 46,710 10/15/2019
3.4.0-beta1-final 4,198 9/23/2019
3.3.1 12,285,559 9/23/2019
3.3.1-beta3-final 12,130 9/5/2019
3.3.0-beta2-final 3,956 8/15/2019
3.3.0-beta1-final 6,287 7/26/2019
3.2.1 234,401 8/9/2019
3.2.0 77,015 8/1/2019
3.2.0-beta4-final 4,217 7/16/2019
3.2.0-beta3-final 5,004 6/25/2019
3.2.0-beta1-final 4,612 5/21/2019
3.1.0 260,229 5/21/2019
3.1.0-beta3-final 7,532 5/7/2019
3.1.0-beta2-final 4,391 4/24/2019
3.1.0-beta1-final 3,726 4/10/2019
3.0.0 1,642,477 4/2/2019
3.0.0-beta4-final 6,390 2/27/2019
3.0.0-beta3-final 6,775 2/14/2019
3.0.0-beta2-final 5,937 1/24/2019
2.11.0-beta1-final 6,383 12/11/2018
2.10.0 1,463,226 11/15/2018
2.9.0 864,301 8/16/2018
2.8.2 8,410,183 5/22/2018
2.8.0 759,770 5/1/2018
2.8.0-beta4 5,493 4/20/2018
2.8.0-beta3 9,127 4/12/2018
2.7.0 140,023 3/8/2018
2.6.1 390,260 12/14/2017
2.6.0 101,905 12/8/2017
2.6.0-beta3 7,313 11/22/2017
2.4.0 260,755 10/16/2017
2.3.2 102,073 8/31/2017
2.3.1 184,792 7/20/2017
2.3.0 38,194 7/11/2017
2.3.0-beta3 4,799 7/6/2017
2.3.0-beta2 5,133 6/15/2017
2.3.0-beta1 10,093 5/30/2017
2.2.0 55,415 5/30/2017
2.1.0 66,536 4/21/2017
2.0.0 131,479 3/9/2017
2.0.0-rc4 8,948 2/8/2017
2.0.0-rc3 5,055 1/30/2017
2.0.0-rc2 13,719 12/14/2016
2.0.0-rc 5,544 11/18/2016
2.0.0-beta5 6,024 10/18/2016
2.0.0-beta4 5,111 10/12/2016
2.0.0-beta3 12,144 7/13/2016
2.0.0-beta1 11,134 3/31/2016
1.3.2 426,638 7/1/2016
1.3.1 113,209 7/1/2016
1.3.0 95,514 6/27/2016
1.3.0-beta1-20160429-01 5,064 5/16/2016
1.2.2 57,963 5/17/2016
1.2.1 98,810 3/31/2016
1.2.0 359,636 3/31/2016
1.2.0-rc 6,061 3/5/2016
1.2.0-beta1-20160202-02 6,406 2/2/2016
1.1.1 86,379 12/3/2015
1.1.0 23,542 11/30/2015
1.1.0-rc1-20151109-01 5,856 11/14/2015
1.1.0-rc1 6,668 10/19/2015
1.1.0-beta1-20150928-02 5,604 10/15/2015
1.1.0-beta1-20150812-01 6,041 8/26/2015
1.1.0-beta1 7,371 10/9/2015
1.0.1 90,351 12/21/2016
1.0.0 227,802 7/13/2015
1.0.0-rc3 16,731 6/17/2015
1.0.0-rc2 372,882 4/24/2015
1.0.0-rc1 16,383 2/14/2015
1.0.0-beta2 17,352 1/16/2015
1.0.0-beta1-20141031-01 11,433 11/11/2014
0.7.4091001-beta 9,187 9/22/2014
0.7.4080704-beta 8,967 8/20/2014
0.7.4052301-beta 10,294 6/3/2014
0.6.4033103-beta 11,938 4/1/2014

Preview of Microsoft .NET Compiler Platform (Roslyn)