RoslynCodeDomProvider icon indicating copy to clipboard operation
RoslynCodeDomProvider copied to clipboard

ASP.NET web.config: Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider added even though it already exists inside location-Element

Open v-lijm opened this issue 2 years ago • 1 comments

<system.codedom> section will be added again with following steps:

  1. Create an ASP.Net Web Application (.Net Framework) with 4.X versions of the Roslyn CodeDom package in Visual Studio Community 17.7.4
  2. Put <system.codedom> into as like this: image
  3. After build the solution, <system.codedom> section is added again at the end. image

v-lijm avatar Sep 26 '23 03:09 v-lijm

You can add the property <RoslynRegisterInConfig>false</RoslynRegisterInConfig> to your project file to block adding the compilers.

CZEMacLeod avatar Sep 26 '23 05:09 CZEMacLeod