CompilationSection.TargetFramework Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.