VCAssemblyReference Interface
Represents a reference to a .NET assembly.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
<GuidAttribute("6DB95875-06F2-45D8-AAE7-1A66CD0148FC")> _
Public Interface VCAssemblyReference _
Inherits VCReference
[GuidAttribute("6DB95875-06F2-45D8-AAE7-1A66CD0148FC")]
public interface VCAssemblyReference : VCReference
[GuidAttribute(L"6DB95875-06F2-45D8-AAE7-1A66CD0148FC")]
public interface class VCAssemblyReference : VCReference
[<GuidAttribute("6DB95875-06F2-45D8-AAE7-1A66CD0148FC")>]
type VCAssemblyReference =
interface
interface VCReference
end
public interface VCAssemblyReference extends VCReference
The VCAssemblyReference type exposes the following members.
Properties
Name | Description | |
---|---|---|
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. | |
AssemblyName | Gets the assembly name for this project. (Inherited from VCReference.) | |
BuildNumber | Gets the build number of the referenced assembly. | |
BuildNumber | The build number of the referenced assembly. (Inherited from VCReference.) | |
CopyLocal | Gets or sets a value indicating whether to automatically copy the reference to the target directory. | |
CopyLocal | Gets or sets a value indicating whether to automatically copy the reference to the target directory. (Inherited from VCReference.) | |
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. | |
CopyLocalDependencies | Infrastructure. Microsoft Internal Use Only. (Inherited from VCReference.) | |
CopyLocalSatelliteAssemblies | Gets or sets a value indicating whether to automatically copy the referenced assembly's satellite assemblies to the target location during a build. | |
CopyLocalSatelliteAssemblies | Infrastructure. Microsoft Internal Use Only. (Inherited from VCReference.) | |
Culture | Gets the culture for the selected reference. | |
Culture | Gets the culture for the selected reference. (Inherited from VCReference.) | |
Description | Gets or sets a string that represents the description for the object or the use of the output group. | |
Description | Gets or sets a string that represents the description for the object. (Inherited from VCReference.) | |
FullPath | Gets the full path of the project file. | |
FullPath | Gets the full path to the referenced assembly. (Inherited from VCReference.) | |
Identity | Gets the identity of the referenced assembly. | |
Identity | The identity of the referenced assembly. (Inherited from VCReference.) | |
ItemName | Gets the name of the current item in the collection. | |
ItemName | Gets the name of the current item in the collection. (Inherited from VCReference.) | |
Kind | Gets an enumeration indicating the type of object. | |
Kind | Gets an enumeration indicating the type of object. (Inherited from VCReference.) | |
Label | Gets the display name of the referenced assembly. | |
Label | Gets the display name of the referenced assembly. (Inherited from VCReference.) | |
majorVersion | Gets the major version of the referenced assembly. | |
majorVersion | Gets the major version of the referenced assembly. (Inherited from VCReference.) | |
MinFrameworkVersion | Gets the minimum version of the .NET Framework required by the project. | |
MinFrameworkVersion | Gets the minimum version of the .NET Framework required by the project. (Inherited from VCReference.) | |
minorVersion | Gets the minor version of the referenced assembly. | |
minorVersion | Gets the minor version of the referenced assembly. (Inherited from VCReference.) | |
Name | Gets or sets the name of the object. | |
Name | Gets or sets the name of the object. (Inherited from VCReference.) | |
Parent | Gets the immediate parent object of a given object. | |
Parent | Gets the immediate parent object of a given object. (Inherited from VCReference.) | |
project | Gets the generic Project object associated with the Visual Basic or Visual C# project. This property is read-only. | |
project | Gets the VCProject associated with the object. (Inherited from VCReference.) | |
PublicKeyToken | Gets the public key token for the referenced assembly. | |
PublicKeyToken | Gets the public key token for the referenced assembly. (Inherited from VCReference.) | |
Reference | Gets the associated reference. | |
Reference | Gets the reference associated with this configuration. (Inherited from VCReference.) | |
RelativePath | Gets or sets the path to the selected reference, relative to the project directory. | |
RevisionNumber | Gets the revision number of the selected reference. | |
RevisionNumber | Gets the revision number of the selected reference. (Inherited from VCReference.) | |
StrongName | Gets a value indicating whether or not the selected reference has a strong name. | |
StrongName | Gets a value indicating whether or not the selected reference has a strong name. (Inherited from VCReference.) | |
SubType | Gets or sets the file's subtype as understood by the designers. | |
SubType | Infrastructure. Microsoft use only. Do not use. (Inherited from VCReference.) | |
UseDependenciesInBuild | Gets or sets a value indicating whether this assembly's dependencies are used in the build process. | |
UseDependenciesInBuild | Sets or gets whether to use assemblies in a build. (Inherited from VCReference.) | |
UseInBuild | Gets or sets a value indicating whether this assembly is used in the build process. | |
UseInBuild | Sets or gets whether referenced assemblies should be used in the build. (Inherited from VCReference.) | |
VCProjectEngine | Gets a pointer to the project engine. | |
VCProjectEngine | Gets a pointer to the project engine. (Inherited from VCReference.) | |
VCReferences | Gets the collection of references for the selected project. | |
VCReferences | Gets the collection of references for the selected project. (Inherited from VCReference.) | |
Version | Gets the version of the selected reference. | |
Version | Gets the version of the selected reference. (Inherited from VCReference.) |
Top
Methods
Name | Description | |
---|---|---|
MatchName(String, Boolean) | Matches a specified name to the name of a collection item. | |
MatchName(String, Boolean) | Matches a specified name to the name of a collection item. (Inherited from VCReference.) | |
Remove() | Removes the specified project from the solution. | |
Remove() | Removes the specified project from the solution. (Inherited from VCReference.) |
Top
Remarks
See Modifying Project Settings for information about accessing a project's property pages dialog box.
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