VCAssemblyReference VCAssemblyReference VCAssemblyReference VCAssemblyReference Interface

Definition

Represents a reference to a .NET assembly.

public interface class VCAssemblyReference : Microsoft::VisualStudio::VCProjectEngine::VCReference
[System.Runtime.InteropServices.Guid("04F61F1D-8CB4-4F98-867A-BB93140BAC5B")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDual | System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable)]
public interface VCAssemblyReference : Microsoft.VisualStudio.VCProjectEngine.VCReference
type VCAssemblyReference = interface
    interface VCReference
Public Interface VCAssemblyReference
Implements VCReference
Attributes
Implements

Examples

' 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  

Remarks

See Working with Project Properties for information about accessing a project's property pages dialog box.

Properties

AssemblyName AssemblyName AssemblyName AssemblyName

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.

BuildNumber BuildNumber BuildNumber BuildNumber

Gets the build number of the referenced assembly.

CopyLocal CopyLocal CopyLocal CopyLocal

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

CopyLocalDependencies CopyLocalDependencies CopyLocalDependencies CopyLocalDependencies

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

CopyLocalSatelliteAssemblies CopyLocalSatelliteAssemblies CopyLocalSatelliteAssemblies CopyLocalSatelliteAssemblies

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

Culture Culture Culture Culture

Gets the culture for the selected reference.

Description Description Description Description

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

FullPath FullPath FullPath FullPath

Gets the full path of the project file.

Identity Identity Identity Identity

Gets the identity of the referenced assembly.

ItemName ItemName ItemName ItemName

Gets the name of the current item in the collection.

Kind Kind Kind Kind

Gets an enumeration indicating the type of object.

Label Label Label Label

Gets the display name of the referenced assembly.

majorVersion majorVersion majorVersion majorVersion

Gets the major version of the referenced assembly.

MinFrameworkVersion MinFrameworkVersion MinFrameworkVersion MinFrameworkVersion

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

minorVersion minorVersion minorVersion minorVersion

Gets the minor version of the referenced assembly.

Name Name Name Name

Gets or sets the name of the object.

Parent Parent Parent Parent

Gets the immediate parent object of a given object.

project project project project

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

PublicKeyToken PublicKeyToken PublicKeyToken PublicKeyToken

Gets the public key token for the referenced assembly.

Reference Reference Reference Reference

Gets the associated reference.

RelativePath RelativePath RelativePath RelativePath

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

RevisionNumber RevisionNumber RevisionNumber RevisionNumber

Gets the revision number of the selected reference.

StrongName StrongName StrongName StrongName

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

SubType SubType SubType SubType

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

UseDependenciesInBuild UseDependenciesInBuild UseDependenciesInBuild UseDependenciesInBuild

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

UseInBuild UseInBuild UseInBuild UseInBuild

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

VCProjectEngine VCProjectEngine VCProjectEngine VCProjectEngine

Gets a pointer to the project engine.

VCReferences VCReferences VCReferences VCReferences

Gets the collection of references for the selected project.

VCReferenceType VCReferenceType VCReferenceType VCReferenceType
Version Version Version Version

Gets the version of the selected reference.

Methods

MatchName(String, Boolean) MatchName(String, Boolean) MatchName(String, Boolean) MatchName(String, Boolean)

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

Remove() Remove() Remove() Remove()

Removes the specified project from the solution.

Applies to