VCAssemblyReference.MinFrameworkVersion Property

Definition

Gets the minimum version of the .NET Framework required by the project.

public:
 property Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion MinFrameworkVersion { Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion get(); };
public:
 property Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion MinFrameworkVersion { Microsoft::VisualStudio::VCProjectEngine::enumFrameworkVersion get(); };
[System.Runtime.InteropServices.DispId(2023)]
public Microsoft.VisualStudio.VCProjectEngine.enumFrameworkVersion MinFrameworkVersion { [System.Runtime.InteropServices.DispId(2023)] get; }
[<System.Runtime.InteropServices.DispId(2023)>]
[<get: System.Runtime.InteropServices.DispId(2023)>]
member this.MinFrameworkVersion : Microsoft.VisualStudio.VCProjectEngine.enumFrameworkVersion
Public ReadOnly Property MinFrameworkVersion As enumFrameworkVersion

Property Value

An enumFrameworkVersion value indicating the minimum .NET Framework required.

Implements

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.

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

  • The VsCore assembly framework service for Assembly references, and is stored in the .vcproj file.

  • A value of "Unknown" if the VsCore service is unavailable. (Such as when the code running outside of the IDE.)

  • The referenced project's TargetFrameworkVersion value for project references. (This value is not stored in the .vcproj file.)

MinFrameworkVersion is cached in the project file. It is rare, however, for the targeted framework version of an assembly to change. If this should occur, simply go to the References dialog box and add the reference again.

Applies to