Reference3::SpecificVersion Property
Gets or sets whether only a specific version of the reference is used.
Assembly: VSLangProj80 (in VSLangProj80.dll)
Property Value
Type: System::BooleanA boolean value indicating whether only a certain version of the reference is used.
This property allows you to target a specific version of a reference to an assembly for a project.
When used with a Reference item type, the Name property needs to be the full fusion name of the assembly to be resolved. The assembly is only resolved if fusion exactly matches the Name property.
When a project targets a .NET Framework version and references an assembly compiled for a higher .NET Framework version, the reference resolves only if it has SpecificVersion set to true.
When a project targets a profile and references an assembly that is not in the profile, the reference resolves only if it has SpecificVersion set to true.
This example displays the SpecificVersion value for each reference in an open Visual Basic or Visual C# project. To run this example as an add-in, see How to: Compile and Run the Automation Object Model Code Examples.