Compartir a través de


VCProjectReference Interface

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
Public property AssemblyName Gets the assembly name for this project.
Public property BuildNumber The build number of the referenced assembly.
Public property CopyLocal Gets or sets a value indicating whether to automatically copy the reference to the target directory.
Public property CopyLocalDependencies Infrastructure. Microsoft Internal Use Only.
Public property CopyLocalSatelliteAssemblies Infrastructure. Microsoft Internal Use Only.
Public property Culture Gets the culture for the selected reference.
Public property Description Gets or sets a string that represents the description for the object or the use of the output group.
Public property FullPath Gets the full path to the referenced assembly.
Public property Identity The identity of the referenced assembly.
Public property IsProjectLoaded Gets whether a project is loaded.
Public property ItemName Gets the name of the current item in the collection.
Public property Kind Gets an enumeration indicating the type of object.
Public property Label Gets the display name of the referenced assembly.
Public property LinkLibraryDependency Gets or sets whether there are link library dependencies.
Public property majorVersion Gets the major version of the referenced assembly.
Public property MinFrameworkVersion Gets the minimum version of the .NET Framework required by the project.
Public property minorVersion Gets the minor version of the referenced assembly.
Public property Name Gets or sets the name of the object.
Public property Parent Gets the immediate parent object of a given object.
Public property project Gets the VCProject associated with the object.
Public property PublicKeyToken Gets the public key token for the referenced assembly.
Public property Reference Displays the reference associated with this configuration.
Public property ReferencedProject Gets or sets the pointer to the project for the selected project reference.
Public property ReferencedProjectIdentifier Infrastructure. Microsoft internal use only.
Public property RevisionNumber Gets the revision number of the selected reference.
Public property StrongName Gets a value indicating whether or not the selected reference has a strong name.
Public property SubType Infrastructure. Microsoft use only. Do not use.
Public property UseDependenciesInBuild Sets or gets whether to use addemblies in abuild.
Public property UseInBuild Sets or gets whether referenced assemblies should be used in the build.
Public property UseLibraryDependencyInputs Gets or sets whether independent linking of libraries is enabled.
Public property VCProjectEngine Gets a pointer to the project engine.
Public property VCReferences Gets the collection of references for the selected project.
Public property Version Gets the version of the selected reference.

Top

Methods

  Name Description
Public method MatchName Matches a specified name to the name of a collection item.
Public method 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.

See Also

Reference

Microsoft.VisualStudio.VCProjectEngine Namespace