UpdateExtensions.SetPackageReferenceVersion Method

Definition

Sets the NuGet package reference version.

public static Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> SetPackageReferenceVersion (this Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> projects, string packageIdentity, string version);
static member SetPackageReferenceVersion : Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot> * string * string -> Microsoft.VisualStudio.ProjectSystem.Query.IAsyncUpdatable<Microsoft.VisualStudio.ProjectSystem.Query.IProjectSnapshot>
<Extension()>
Public Function SetPackageReferenceVersion (projects As IAsyncUpdatable(Of IProjectSnapshot), packageIdentity As String, version As String) As IAsyncUpdatable(Of IProjectSnapshot)

Parameters

projects
IAsyncUpdatable<IProjectSnapshot>

A set of projects where this change should apply to.

packageIdentity
String

The identity of the package reference to be updated.

version
String

The updated version of the package reference.

Returns

A set of projects updated.

Applies to