Compartir a través de


UpdateExtensions.AddReferences Method

Definition

Adds a reference to an assembly to projects.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot> AddReferences (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot> project, System.Collections.Generic.IEnumerable<string> assemblyNameOrPaths);
static member AddReferences : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot> * seq<string> -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot>
<Extension()>
Public Function AddReferences (project As IAsyncUpdatable(Of IProjectConfigurationSnapshot), assemblyNameOrPaths As IEnumerable(Of String)) As IAsyncUpdatable(Of IProjectConfigurationSnapshot)

Parameters

project
IAsyncUpdatable<IProjectConfigurationSnapshot>

A set of projects where this change should apply to.

assemblyNameOrPaths
IEnumerable<String>

The name of the assembly or the path of the assembly.

Returns

A set of projects updated.

Applies to