This topic has not yet been rated - Rate this topic

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)
enumFrameworkVersion TargetFrameworkVersion { get; set; }

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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.