다음을 통해 공유


UpdateExtensions.AddReference Method

Definition

Adds a reference to an assembly to projects.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot> AddReference (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot> project, string assemblyNameOrPath);
static member AddReference : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot> * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectConfigurationSnapshot>
<Extension()>
Public Function AddReference (project As IAsyncUpdatable(Of IProjectConfigurationSnapshot), assemblyNameOrPath As String) As IAsyncUpdatable(Of IProjectConfigurationSnapshot)

Parameters

project
IAsyncUpdatable<IProjectConfigurationSnapshot>

A set of projects where this change should apply to.

assemblyNameOrPath
String

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

Returns

A set of projects updated.

Applies to