CompilationSection.TargetFramework Property

.NET Framework (current version)
 

Gets or sets the version of the .NET Framework that the Web site targets.

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

<ConfigurationPropertyAttribute("targetFramework", DefaultValue := Nothing)>
Public Property TargetFramework As String

Property Value

Type: System.String

The version of the .NET Framework that the Web site targets. The default value is null.

For information about how to target a specific version of the .NET Framework, see .NET Framework Multi-Targeting for ASP.NET Web Projects.

.NET Framework
Available since 4.0
Return to top
Show: