VCAssemblyReference Interface
TOC
Collapse the table of content
Expand the table of content

VCAssemblyReference Interface

Represents a reference to a .NET assembly.

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

[GuidAttribute("6DB95875-06F2-45D8-AAE7-1A66CD0148FC")]
public interface VCAssemblyReference : VCReference

The VCAssemblyReference type exposes the following members.

  NameDescription
Public propertyAssemblyNameGets the name of the assembly. The assembly name is a short, friendly name for an assembly. The assembly name, assembly version, originator key, and locale are used by the common language runtime to uniquely identify an assembly during binding.
Public propertyAssemblyNameGets the assembly name for this project. (Inherited from VCReference.)
Public propertyBuildNumberGets the build number of the referenced assembly.
Public propertyBuildNumberThe build number of the referenced assembly. (Inherited from VCReference.)
Public propertyCopyLocalGets or sets a value indicating whether to automatically copy the reference to the target directory.
Public propertyCopyLocalGets or sets a value indicating whether to automatically copy the reference to the target directory. (Inherited from VCReference.)
Public propertyCopyLocalDependenciesGets or sets a value indicating whether to automatically copy the referenced assembly's non-system dependencies to the target location during a build.
Public propertyCopyLocalDependenciesInfrastructure. Microsoft Internal Use Only. (Inherited from VCReference.)
Public propertyCopyLocalSatelliteAssembliesGets or sets a value indicating whether to automatically copy the referenced assembly's satellite assemblies to the target location during a build.
Public propertyCopyLocalSatelliteAssembliesInfrastructure. Microsoft Internal Use Only. (Inherited from VCReference.)
Public propertyCultureGets the culture for the selected reference.
Public propertyCultureGets the culture for the selected reference. (Inherited from VCReference.)
Public propertyDescriptionGets or sets a string that represents the description for the object or the use of the output group.
Public propertyDescriptionGets or sets a string that represents the description for the object. (Inherited from VCReference.)
Public propertyFullPathGets the full path of the project file.
Public propertyFullPathGets the full path to the referenced assembly. (Inherited from VCReference.)
Public propertyIdentityGets the identity of the referenced assembly.
Public propertyIdentityThe identity of the referenced assembly. (Inherited from VCReference.)
Public propertyItemNameGets the name of the current item in the collection.
Public propertyItemNameGets the name of the current item in the collection. (Inherited from VCReference.)
Public propertyKindGets an enumeration indicating the type of object.
Public propertyKindGets an enumeration indicating the type of object. (Inherited from VCReference.)
Public propertyLabelGets the display name of the referenced assembly.
Public propertyLabelGets the display name of the referenced assembly. (Inherited from VCReference.)
Public propertymajorVersionGets the major version of the referenced assembly.
Public propertymajorVersionGets the major version of the referenced assembly. (Inherited from VCReference.)
Public propertyMinFrameworkVersionGets the minimum version of the .NET Framework required by the project.
Public propertyMinFrameworkVersionGets the minimum version of the .NET Framework required by the project. (Inherited from VCReference.)
Public propertyminorVersionGets the minor version of the referenced assembly.
Public propertyminorVersionGets the minor version of the referenced assembly. (Inherited from VCReference.)
Public propertyNameGets or sets the name of the object.
Public propertyNameGets or sets the name of the object. (Inherited from VCReference.)
Public propertyParentGets the immediate parent object of a given object.
Public propertyParentGets the immediate parent object of a given object. (Inherited from VCReference.)
Public propertyprojectGets the generic Project object associated with the Visual Basic or Visual C# project. This property is read-only.
Public propertyprojectGets the VCProject associated with the object. (Inherited from VCReference.)
Public propertyPublicKeyTokenGets the public key token for the referenced assembly.
Public propertyPublicKeyTokenGets the public key token for the referenced assembly. (Inherited from VCReference.)
Public propertyReferenceGets the associated reference.
Public propertyReferenceGets the reference associated with this configuration. (Inherited from VCReference.)
Public propertyRelativePathGets or sets the path to the selected reference, relative to the project directory.
Public propertyRevisionNumberGets the revision number of the selected reference.
Public propertyRevisionNumberGets the revision number of the selected reference. (Inherited from VCReference.)
Public propertyStrongNameGets a value indicating whether or not the selected reference has a strong name.
Public propertyStrongNameGets a value indicating whether or not the selected reference has a strong name. (Inherited from VCReference.)
Public propertySubTypeGets or sets the file's subtype as understood by the designers.
Public propertySubTypeInfrastructure. Microsoft use only. Do not use. (Inherited from VCReference.)
Public propertyUseDependenciesInBuildGets or sets a value indicating whether this assembly's dependencies are used in the build process.
Public propertyUseDependenciesInBuildSets or gets whether to use assemblies in a build. (Inherited from VCReference.)
Public propertyUseInBuildGets or sets a value indicating whether this assembly is used in the build process.
Public propertyUseInBuildSets or gets whether referenced assemblies should be used in the build. (Inherited from VCReference.)
Public propertyVCProjectEngineGets a pointer to the project engine.
Public propertyVCProjectEngineGets a pointer to the project engine. (Inherited from VCReference.)
Public propertyVCReferencesGets the collection of references for the selected project.
Public propertyVCReferencesGets the collection of references for the selected project. (Inherited from VCReference.)
Public propertyVersionGets the version of the selected reference.
Public propertyVersionGets the version of the selected reference. (Inherited from VCReference.)
Top

  NameDescription
Public methodMatchName(String, Boolean)Matches a specified name to the name of a collection item.
Public methodMatchName(String, Boolean)Matches a specified name to the name of a collection item. (Inherited from VCReference.)
Public methodRemove()Removes the specified project from the solution.
Public methodRemove()Removes the specified project from the solution. (Inherited from VCReference.)
Top

See Modifying Project Settings for information about accessing a project's property pages dialog box.

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim vcar As VCAssemblyReference
        Dim refcfg As VCReferenceConfiguration

        prj = DTE.Solution.Projects.Item(1).Object
        If prj.CanAddAssemblyReference("C:\Program Files\ _
        Microsoft Visual Studio 8\Common7\IDE\ _
        PublicAssemblies\envdte.dll") Then
           vcar = prj.AddAssemblyReference("C:\Program Files\ _
           Microsoft Visual Studio 8\Common7\IDE\ _
           PublicAssemblies\envdte.dll")
        End If
        refcfg = vcar.ReferenceConfigurations.Item(1)
        MsgBox("Consumable? " & refcfg.ConsumableByDesigner)
    End Sub
End Module

Community Additions

ADD
Show:
© 2016 Microsoft