Microsoft.CodeDom.Providers.DotNetCompilerPlatform 4.1.0

Prefix Reserved
dotnet add package Microsoft.CodeDom.Providers.DotNetCompilerPlatform --version 4.1.0
                    
NuGet\Install-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -Version 4.1.0
                    
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.CodeDom.Providers.DotNetCompilerPlatform" Version="4.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" Version="4.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" />
                    
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.CodeDom.Providers.DotNetCompilerPlatform --version 4.1.0
                    
#r "nuget: Microsoft.CodeDom.Providers.DotNetCompilerPlatform, 4.1.0"
                    
#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.
#addin nuget:?package=Microsoft.CodeDom.Providers.DotNetCompilerPlatform&version=4.1.0
                    
Install Microsoft.CodeDom.Providers.DotNetCompilerPlatform as a Cake Addin
#tool nuget:?package=Microsoft.CodeDom.Providers.DotNetCompilerPlatform&version=4.1.0
                    
Install Microsoft.CodeDom.Providers.DotNetCompilerPlatform as a Cake Tool

⚠️ Project-less 'WebSite's should use ....DotNetCompilerPlatform.WebSites package ⚠️

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.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+.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (176)

Showing the top 5 NuGet packages that depend on Microsoft.CodeDom.Providers.DotNetCompilerPlatform:

Package Downloads
UmbracoCms

Installs Umbraco Cms in your Visual Studio ASP.NET project

Fluent.Infrastructure

Fluent.Infrastructure is an infrastructure that unites Controller, Service, Repository, Validation and automation integration testing with the aim of accelerating the development of organized systems, causing major operations become simple and quick to implement. Cache control and logic exclusion are supported simply. Find, Add, Update and Remove are the basic operations that do not require addition to files to run on your system.

Omnicx.WebStore.Core

OmniCX WebStore Core contains the Controllers, API SDK and Models required to run the MVC Views of the WebStore.

Nancy.Viewengines.Razor

Enables using the Razor view engine with Nancy.

AFL

AFL Core

GitHub repositories (168)

Showing the top 20 popular GitHub repositories that depend on Microsoft.CodeDom.Providers.DotNetCompilerPlatform:

Repository Stars
dotnet/aspnetcore
ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
microsoft/ailab
Experience, Learn and Code the latest breakthrough innovations with Microsoft AI
NancyFx/Nancy
Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
xamarin/xamarin-forms-samples
Sample apps built using the Xamarin.Forms framework
hardkoded/puppeteer-sharp
Headless Chrome .NET API
mini-software/MiniExcel
Fast, Low-Memory, Easy Excel .NET helper to import/export/template spreadsheet (support Linux, Mac)
MiniProfiler/dotnet
A simple but effective mini-profiler for ASP.NET (and Core) websites
smartstore/SmartStoreNET
Open Source ASP.NET MVC Enterprise eCommerce Shopping Cart Solution
OrchardCMS/Orchard
Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
prometheus-net/prometheus-net
.NET library to instrument your code with Prometheus metrics
pnp/PnP
SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
jakubgarfield/Bonobo-Git-Server
Bonobo Git Server for Windows is a web application you can install on your IIS and easily manage and connect to your git repositories. Go to homepage for release and more info.
microsoft/PowerApps-Samples
Sample code for Power Apps, including Dataverse, model-driven apps, canvas apps, Power Apps component framework, portals, and AI Builder.
fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat
可能是全网最完整的 C# 版微信 SDK,封装全部已知的微信 OpenAPI,包含微信公众平台(订阅号+服务号+小程序+小游戏+小商店+视频号)、微信开放平台、微信商户平台(微信支付+微企付)、企业微信、微信广告平台、微信智能对话开放平台等模块,可跨平台。持续随官方更新,欢迎 Star/Fork/PR。QQ 交流群 875580418【满】、930461548【满】、611974621。
NuGet/NuGetGallery
NuGet Gallery is a package repository that powers https://www.nuget.org. Use this repo for reporting NuGet.org issues.
WireMock-Net/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
dathlin/ClientServerProject
一个C-S模版,该模版由三部分的程序组成,一个服务端运行的程序,一个客户端运行的程序,还有一个公共的组件,实现了基础的账户管理功能,版本控制,软件升级,公告管理,消息群发,共享文件上传下载,批量文件传送功能。具体的操作方法见演示就行。本项目的一个目标是:提供一个基础的中小型系统的C-S框架,客户端有三种模式,无缝集成访问,winform版本,wpf版本,asp.net mvc版本,方便企业进行中小型系统的二次开发和个人学习。同时网络组件方便的支持读写三菱和西门子PLC的数据,详细见Readme
stefanprodan/WebApiThrottle
ASP.NET Web API rate limiter for IIS and Owin hosting
OfficeDev/Microsoft-Teams-Samples
Welcome to the Microsoft Teams samples repository. Here you will find task-focused samples in C#, JavaScript and TypeScript to help you get started with the Microsoft Teams App!
Version Downloads Last updated
4.1.0 5,186,953 4/12/2023
4.1.0-preview1 182,765 4/16/2022
3.11.0 219,219 4/12/2023
3.11.0-preview2 7,801 4/16/2022
3.11.0-preview1 3,615 4/1/2022
3.6.0 17,979,695 7/8/2020
3.5.0-preview1 43,650 5/15/2020
2.0.1 41,607,578 9/13/2018
2.0.0 19,717,047 6/4/2018
2.0.0-preview 19,028 5/4/2018
1.0.8 13,620,226 10/18/2017
1.0.7 5,990,743 8/16/2017
1.0.6 378,752 8/4/2017
1.0.5 3,963,935 6/8/2017
1.0.4 1,252,878 4/27/2017
1.0.3 7,951,105 12/15/2016
1.0.2 2,253,519 9/20/2016
1.0.1 4,918,201 9/3/2015
1.0.0 20,074,777 7/11/2015
1.0.0-beta1 15,192 4/24/2015
0.2.0-pre 6,447 7/9/2014
0.1.0-pre 3,465 5/12/2014