Export (0) Print
Expand All

BuildProvider.GetDefaultCompilerType Method

Returns the compiler settings for the default language in the application.

Namespace:  System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

protected CompilerType GetDefaultCompilerType()

Return Value

Type: System.Web.Compilation.CompilerType
A CompilerType that represents the compiler settings for the default language in the application. The base class returns the default compiler based on the application configuration file.

Use the GetDefaultCompilerType method to examine the default compiler type for a build provider. Use the GetDefaultCompilerTypeForLanguage method to examine the compiler type configured in a build provider for a specific language name.

The base BuildProvider class determines the default compiler type using the defaultLanguage attribute value in the compilation section of the application configuration file. If there is no default language setting in the compilation section, the default compiler type is set using the VBCodeProvider language provider.

When deriving from the BuildProvider class, you can use GetDefaultCompilerType to set the CodeCompilerType property within your implementation.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft