UpdateExtensions.AddReference 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> 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
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.