Permalink
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (65 sloc) 3.54 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Compiler and Language Provider Settings Schema
03/30/2017
.net-framework
dotnet-clr
article
VB
CSharp
C++
jsharp
configuration settings [.NET Framework], compilers
compiler configuration elements, schema
compiler configuration elements
language providers
compiler configuration settings, schema
configuration schema [.NET Framework], compiler settings
language providers, settings schema
compiler configuration settings
c020b139-8699-4f0d-9ac9-70d0c5b2a8c8
9
mcleblanc
markl
markl

Compiler and Language Provider Settings Schema

Compiler and language provider settings specify compiler configuration elements for available language providers. Each compiler configuration element specifies the code provider type name, compiler parameters, supported language names, and supported file extensions.

The .NET Framework defines the initial compiler settings in the machine configuration file (Machine.config). Developers and compiler vendors can add configuration settings for a new xref:System.CodeDom.Compiler.CodeDomProvider implementation. Use the xref:System.CodeDom.Compiler.CodeDomProvider.GetAllCompilerInfo%2A?displayProperty=nameWithType method to programmatically enumerate language provider and compiler configuration settings on a computer.

<configuration> Element

<system.codedom>

<compilers>

<compiler>

Element Description
<system.codedom> Specifies compiler configuration settings for available language providers.
<compilers> Container for compiler configuration elements; contains zero or more <compiler> elements.
<compiler> Specifies the compiler configuration attributes for a language provider.

Example

The following example illustrates a typical compiler configuration element.

<configuration>  
   <system.codedom>  
     <compilers>  
       <!-- zero or more compiler elements -->  
       <compiler  
          language="c#;cs;csharp"  
          extension=".cs"  
          type="Microsoft.CSharp.CSharpCodeProvider, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"  
          compilerOptions=""  
          warningLevel="1" />  
     </compilers>  
   </system.codedom>  
</configuration>  

See Also

xref:System.CodeDom.Compiler.CompilerInfo
xref:System.CodeDom.Compiler.CodeDomProvider
Configuration File Schema
<compiler> Element