Partager via


UpdateExtensions.AddSharedProjectReference Method

Definition

Overloads

AddSharedProjectReference(IAsyncUpdatable<IProjectSnapshot>, IProjectSnapshot)

Adds a reference to a shared project in the solution.

AddSharedProjectReference(IAsyncUpdatable<IProjectSnapshot>, String)

Adds a reference to a shared project in the solution.

AddSharedProjectReference(IAsyncUpdatable<IProjectSnapshot>, IProjectSnapshot)

Adds a reference to a shared project in the solution.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddSharedProjectReference (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot referencedProject);
static member AddSharedProjectReference : 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 AddSharedProjectReference (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 shared project to be referenced.

Returns

A set of projects updated.

Applies to

AddSharedProjectReference(IAsyncUpdatable<IProjectSnapshot>, String)

Adds a reference to a shared project in the solution.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> AddSharedProjectReference (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, string referencedProjectPath);
static member AddSharedProjectReference : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function AddSharedProjectReference (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 shared project to be referenced.

Returns

A set of projects updated.

Applies to