UpdateExtensions.AddProjectReferences Method

Definition

Adds a reference to another project in the solution.

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

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

Proizvod Verzije
Visual Studio SDK 2022