UpdateExtensions.AddReferences Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.