Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

[ConfigurationPropertyAttribute("targetFramework", DefaultValue = null)]
public string TargetFramework { get; set; }

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

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