VCProject::TargetFrameworkVersion Property

 

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

Namespace:   Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

property enumFrameworkVersion TargetFrameworkVersion {
	enumFrameworkVersion get();
	void set(enumFrameworkVersion value);
}

Property Value

Type: Microsoft.VisualStudio.VCProjectEngine::enumFrameworkVersion

An enumFrameworkVersion value representing the .NET Framework version.

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.

Return to top
Show: