CompilationSection.TargetFramework Property

Definition

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

public:
 property System::String ^ TargetFramework { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("targetFramework", DefaultValue=null)]
public string TargetFramework { get; set; }
[<System.Configuration.ConfigurationProperty("targetFramework", DefaultValue=null)>]
member this.TargetFramework : string with get, set
Public Property TargetFramework As String

Property Value

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

Attributes

Examples

compilation Element (ASP.NET Settings Schema)

Remarks

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

Applies to