Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Represents a reference to a project in the same solution.
Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
<GuidAttribute("F3881D52-F078-40C6-9806-ACB82F46B7CA")> _
Public Interface VCProjectReference _
    Inherits VCReference
[GuidAttribute("F3881D52-F078-40C6-9806-ACB82F46B7CA")]
public interface VCProjectReference : VCReference
[GuidAttribute(L"F3881D52-F078-40C6-9806-ACB82F46B7CA")]
public interface class VCProjectReference : VCReference
[<GuidAttribute("F3881D52-F078-40C6-9806-ACB82F46B7CA")>]
type VCProjectReference =  
    interface 
        interface VCReference 
    end
public interface VCProjectReference extends VCReference
The VCProjectReference type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
![]()  | 
AssemblyName | Gets the assembly name for this project. | 
![]()  | 
BuildNumber | The build number of the referenced assembly. | 
![]()  | 
CopyLocal | Gets or sets a value indicating whether to automatically copy the reference to the target directory. | 
![]()  | 
CopyLocalDependencies | Infrastructure. Microsoft Internal Use Only. | 
![]()  | 
CopyLocalSatelliteAssemblies | Infrastructure. Microsoft Internal Use Only. | 
![]()  | 
Culture | Gets the culture for the selected reference. | 
![]()  | 
Description | Gets or sets a string that represents the description for the object or the use of the output group. | 
![]()  | 
FullPath | Gets the full path to the referenced assembly. | 
![]()  | 
Identity | The identity of the referenced assembly. | 
![]()  | 
IsProjectLoaded | Gets whether a project is loaded. | 
![]()  | 
ItemName | Gets the name of the current item in the collection. | 
![]()  | 
Kind | Gets an enumeration indicating the type of object. | 
![]()  | 
Label | Gets the display name of the referenced assembly. | 
![]()  | 
LinkLibraryDependency | Gets or sets whether there are link library dependencies. | 
![]()  | 
majorVersion | Gets the major version of the referenced assembly. | 
![]()  | 
MinFrameworkVersion | Gets the minimum version of the .NET Framework required by the project. | 
![]()  | 
minorVersion | Gets the minor version of the referenced assembly. | 
![]()  | 
Name | Gets or sets the name of the object. | 
![]()  | 
Parent | Gets the immediate parent object of a given object. | 
![]()  | 
project | Gets the VCProject associated with the object. | 
![]()  | 
PublicKeyToken | Gets the public key token for the referenced assembly. | 
![]()  | 
Reference | Displays the reference associated with this configuration. | 
![]()  | 
ReferencedProject | Gets or sets the pointer to the project for the selected project reference. | 
![]()  | 
ReferencedProjectIdentifier | Infrastructure. Microsoft internal use only. | 
![]()  | 
RevisionNumber | Gets the revision number of the selected reference. | 
![]()  | 
StrongName | Gets a value indicating whether or not the selected reference has a strong name. | 
![]()  | 
SubType | Infrastructure. Microsoft use only. Do not use. | 
![]()  | 
UseDependenciesInBuild | Sets or gets whether to use addemblies in abuild. | 
![]()  | 
UseInBuild | Sets or gets whether referenced assemblies should be used in the build. | 
![]()  | 
UseLibraryDependencyInputs | Gets or sets whether independent linking of libraries is enabled. | 
![]()  | 
VCProjectEngine | Gets a pointer to the project engine. | 
![]()  | 
VCReferences | Gets the collection of references for the selected project. | 
![]()  | 
Version | Gets the version of the selected reference. | 
Top
Methods
| Name | Description | |
|---|---|---|
![]()  | 
MatchName | Matches a specified name to the name of a collection item. | 
![]()  | 
Remove | Removes the specified project from the solution. | 
Top
Remarks
At minimum, VCProjectReference is a build-order dependency. If it is a .NET assembly, it is included in the DLL. If it is not a .NET assembly and it searches a .lib file, it is linked into your EXE.
.gif)
.gif)