Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TargetFramework Property

CompilationSection.TargetFramework Property

.NET Framework 4.6 and 4.5

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)

'Declaration
<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 Nothing.

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

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft