次の方法で共有


VCProject.TargetFrameworkVersion Property

Definition

Gets or sets the version of the .NET Framework that is targeted by the project.

public:
 property Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion TargetFrameworkVersion { Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion get(); void set(Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion value); };
public:
 property Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion TargetFrameworkVersion { Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion get(); void set(Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion value); };
[System.Runtime.InteropServices.DispId(880)]
public Microsoft.VisualStudio.VCProjectEngine.enumFrameworkVersion TargetFrameworkVersion { [System.Runtime.InteropServices.DispId(880)] get; [System.Runtime.InteropServices.DispId(880)] set; }
[<System.Runtime.InteropServices.DispId(880)>]
[<get: System.Runtime.InteropServices.DispId(880)>]
[<set: System.Runtime.InteropServices.DispId(880)>]
member this.TargetFrameworkVersion : Microsoft.VisualStudio.VCProjectEngine.enumFrameworkVersion with get, set
Public Property TargetFrameworkVersion As enumFrameworkVersion

Property Value

An enumFrameworkVersion value representing the .NET Framework version.

Attributes

Remarks

In Visual Studio 2008, projects can be set to target a specific .NET Framework version. This value can be set or read by TargetFrameworkVersion.

The references of a project are configuration independent. Because the TargetFrameworkVersion property specifically relates to references, it is also configuration independent.

An "unknown" enum value is not supported for this property.

Each assembly reference has a property associated with it called "MinFrameworkVersion" whose type is the same type as that of the project's TargetFrameworkVersion.

Applies to