Gets the minimum version of the .NET Framework required by the project.
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
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.)
is cached in the project file. It is rare, however, for the targeted framework version of a project to change. If this should occur, simply go to the References dialog box and add the reference again.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.