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("BBD5E771-EA8A-4665-817A-E79BA9AB77BD")]
public interface VCAssemblyReference : VCReference

NameDescription
System_CAPS_pubpropertyAssemblyName

Gets 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.

System_CAPS_pubpropertyBuildNumber

Gets the build number of the referenced assembly.

System_CAPS_pubpropertyCopyLocal

Gets or sets a value indicating whether to automatically copy the reference to the target directory.

System_CAPS_pubpropertyCopyLocalDependencies

Gets or sets a value indicating whether to automatically copy the referenced assembly's non-system dependencies to the target location during a build.

System_CAPS_pubpropertyCopyLocalSatelliteAssemblies

Gets or sets a value indicating whether to automatically copy the referenced assembly's satellite assemblies to the target location during a build.

System_CAPS_pubpropertyCulture

Gets the culture for the selected reference.

System_CAPS_pubpropertyDescription

Gets or sets a string that represents the description for the object or the use of the output group.

System_CAPS_pubpropertyFullPath

Gets the full path of the project file.

System_CAPS_pubpropertyIdentity

Gets the identity of the referenced assembly.

System_CAPS_pubpropertyItemName

Gets the name of the current item in the collection.

System_CAPS_pubpropertyKind

Gets an enumeration indicating the type of object.

System_CAPS_pubpropertyLabel

Gets the display name of the referenced assembly.

System_CAPS_pubpropertymajorVersion

Gets the major version of the referenced assembly.

System_CAPS_pubpropertyMinFrameworkVersion

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

System_CAPS_pubpropertyminorVersion

Gets the minor version of the referenced assembly.

System_CAPS_pubpropertyName

Gets or sets the name of the object.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a given object.

System_CAPS_pubpropertyproject

Gets the generic Project object associated with the Visual Basic or Visual C# project. This property is read-only.

System_CAPS_pubpropertyPublicKeyToken

Gets the public key token for the referenced assembly.

System_CAPS_pubpropertyReference

Gets the associated reference.

System_CAPS_pubpropertyRelativePath

Gets or sets the path to the selected reference, relative to the project directory.

System_CAPS_pubpropertyRevisionNumber

Gets the revision number of the selected reference.

System_CAPS_pubpropertyStrongName

Gets a value indicating whether or not the selected reference has a strong name.

System_CAPS_pubpropertySubType

Gets or sets the file's subtype as understood by the designers.

System_CAPS_pubpropertyUseDependenciesInBuild

Gets or sets a value indicating whether this assembly's dependencies are used in the build process.

System_CAPS_pubpropertyUseInBuild

Gets or sets a value indicating whether this assembly is used in the build process.

System_CAPS_pubpropertyVCProjectEngine

Gets a pointer to the project engine.

System_CAPS_pubpropertyVCReferences

Gets the collection of references for the selected project.

System_CAPS_pubpropertyVersion

Gets the version of the selected reference.

NameDescription
System_CAPS_pubmethodMatchName(String, Boolean)

Matches a specified name to the name of a collection item.

System_CAPS_pubmethodRemove()

Removes the specified project from the solution.

See Working with Project Properties 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
Return to top
Show:
© 2016 Microsoft