UpdateExtensions.AddProjectReferences Method

Definition

Adds a reference to another project in the solution.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddProjectReferences (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, System.Collections.Generic.IEnumerable<string> referencedProjectPaths);
static member AddProjectReferences : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * seq<string> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function AddProjectReferences (projects As IAsyncUpdatable(Of IProjectSnapshot), referencedProjectPaths As IEnumerable(Of String)) As IAsyncUpdatable(Of IProjectSnapshot)

Parameters

projects
IAsyncUpdatable<IProjectSnapshot>

A set of projects where this change should apply to.

referencedProjectPaths
IEnumerable<String>

The paths of a project to be referenced.

Returns

A set of projects updated.

Applies to