Microsoft.CodeDom.Providers.DotNetCompilerPlatform 4.14.0-preview1
:warning: Project-less 'WebSite's should use ....DotNetCompilerPlatform.WebSites package :warning:
Version 4.X of this package has moved fully into an msbuild/targets model. But "Web Site"s - because they are "project-less" - have very limited support in msbuild and the package does not fully install like it did in the 3.X and earlier releases. Please use the Microsoft.CodeDom.Providers.DotNetCompilerPlatform.WebSites package for proper integration with a "Web Site" project.
Introduction
Replacement CodeDOM providers that use the new .NET Compiler Platform ("Roslyn") compiler as a service APIs. This provides support for new language features in systems using CodeDOM (e.g. ASP.NET runtime compilation) as well as improving the compilation performance of these systems.
Please see the blog Enabling the .NET Compiler Platform (“Roslyn”) in ASP.NET applications for an introduction to Microsoft.CodeDom.Providers.DotNetCompilerPlatform. The project github also has the most up-to-date documentation of the various settings available for configuring this provider.
Updates
Version 4.5.0
Refreshed compilers
In keeping with the new versioning scheme for this project, the version has been revved to 4.5 to match the version of the compilers included.
:information_source: The source of compiler tools in this package has been updated to Microsoft.Net.Compilers.Toolset from the old, deprecated
Microsoft.Net.Compilerspackage that had been used before. There shouldn't be any behavioral change due to this change in Roslyn packages.Fixed targets-based tool copy
The msbuild targets-based identification and copy of Roslyn files to the project output was not working correctly in the last version. This has been fixed to ensure that Roslyn compiler files are copied to the correct location during build.
Version 4.1.0 (preview1)
Drop install.ps1, Rely more on msbuild
Nuget has moved on from install.ps1. We had one foot in the msbuild camp before, and one foot still in the install.ps1 camp. Time to just jump in with both feet. See the 'RoslynRegisterInConfig' setting description below.
Refreshed current compilers
In keeping with the new versioning scheme for this project, the version has been revved to 4.1 to match the version of the compilers included.
No more old compilers
Stop carrying old versions of compilers. If you upgrade to get new compilers, you get new compilers. The old compilers that might carry references to binaries that get flagged in security scans even though the binaries don't get copied to the ouput directory... they just won't be included in the package anymore.
.Net >= 4.7.2
As a result of not keeping older compilers packaged in this project, we can no longer support versions before 4.7.2 because compiler versions 3.0 and newer only support 4.7.2+.
No packages depend on Microsoft.CodeDom.Providers.DotNetCompilerPlatform.
| Version | Downloads | Last updated |
|---|---|---|
| 4.14.0-preview1 | 6 | 09/02/2026 |
| 4.1.0 | 53 | 03/16/2026 |
| 4.1.0-preview1 | 39 | 03/16/2026 |
| 3.11.1 | 13 | 09/02/2026 |
| 3.11.0 | 37 | 03/16/2026 |
| 3.11.0-preview2 | 33 | 03/16/2026 |
| 3.11.0-preview1 | 33 | 03/16/2026 |
| 3.6.0 | 38 | 03/16/2026 |
| 3.5.0-preview1 | 37 | 03/16/2026 |
| 2.0.1 | 43 | 03/16/2026 |
| 2.0.0 | 37 | 03/16/2026 |
| 2.0.0-preview | 40 | 03/16/2026 |
| 1.0.8 | 32 | 03/16/2026 |
| 1.0.7 | 41 | 03/16/2026 |
| 1.0.6 | 32 | 03/16/2026 |
| 1.0.5 | 37 | 03/16/2026 |
| 1.0.4 | 32 | 03/16/2026 |
| 1.0.3 | 38 | 03/16/2026 |
| 1.0.2 | 24 | 03/16/2026 |
| 1.0.1 | 33 | 03/16/2026 |
| 1.0.0 | 35 | 03/16/2026 |
| 1.0.0-beta1 | 34 | 03/16/2026 |
| 0.2.0-pre | 27 | 03/16/2026 |
| 0.1.0-pre | 25 | 03/16/2026 |