UpdateExtensions.AddProjectReference Method

Definition

Overloads

AddProjectReference(IAsyncUpdatable<IProjectSnapshot>, IProjectSnapshot)

Adds a reference to another project in the solution.

AddProjectReference(IAsyncUpdatable<IProjectSnapshot>, String)

Adds a reference to another project in the solution.

AddProjectReference(IAsyncUpdatable<IProjectSnapshot>, IProjectSnapshot)

Adds a reference to another project in the solution.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddProjectReference (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot referencedProject);
static member AddProjectReference : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function AddProjectReference (projects As IAsyncUpdatable(Of IProjectSnapshot), referencedProject As IProjectSnapshot) As IAsyncUpdatable(Of IProjectSnapshot)

Parameters

projects
IAsyncUpdatable<IProjectSnapshot>

A set of projects where this change should apply to.

referencedProject
IProjectSnapshot

A project to be referenced.

Returns

A set of projects updated.

Applies to

AddProjectReference(IAsyncUpdatable<IProjectSnapshot>, String)

Adds a reference to another project in the solution.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddProjectReference (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, string referencedProjectPath);
static member AddProjectReference : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function AddProjectReference (projects As IAsyncUpdatable(Of IProjectSnapshot), referencedProjectPath As String) As IAsyncUpdatable(Of IProjectSnapshot)

Parameters

projects
IAsyncUpdatable<IProjectSnapshot>

A set of projects where this change should apply to.

referencedProjectPath
String

The path of a project to be referenced.

Returns

A set of projects updated.

Applies to