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.

C#
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);

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

Visual Studio SDK 2022
Proizvod Verzije
Visual Studio SDK 2022

AddProjectReference(IAsyncUpdatable<IProjectSnapshot>, String)

Adds a reference to another project in the solution.

C#
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);

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

Visual Studio SDK 2022
Proizvod Verzije
Visual Studio SDK 2022