VCReferences.AddProjectReference Method

Adds a project reference to the project.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Function AddProjectReference ( _
    proj As Object _
) As Object
Object AddProjectReference(
    Object proj
)
Object^ AddProjectReference(
    [InAttribute] Object^ proj
)
abstract AddProjectReference : 
        proj:Object -> Object
function AddProjectReference(
    proj : Object
) : Object

Parameters

  • proj
    Type: Object

    The project reference to add.

Return Value

Type: Object
An object representing the project reference.

Remarks

You can reference only loaded projects.

.NET Framework Security

See Also

Reference

VCReferences Interface

Microsoft.VisualStudio.VCProjectEngine Namespace