CompilationSection.TargetFramework Property
.NET Framework (current version)
Gets or sets the version of the .NET Framework that the Web site targets.
Assembly: System.Web (in System.Web.dll)
<ConfigurationPropertyAttribute("targetFramework", DefaultValue := Nothing)> Public Property TargetFramework As String
Property Value
Type: System.StringThe 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
Available since 4.0
Show: