IVsSolutionWorkspaceNugetService.GetPackageReferenceDataAsync Method

Definition

Gets the package reference data included in the project file.

public:
 System::Threading::Tasks::Task<System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Workspace::VSIntegration::PackageReferenceData> ^> ^ GetPackageReferenceDataAsync(System::String ^ projectFile, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Workspace.VSIntegration.PackageReferenceData>> GetPackageReferenceDataAsync (string projectFile, System.Threading.CancellationToken cancellationToken);
abstract member GetPackageReferenceDataAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.VisualStudio.Workspace.VSIntegration.PackageReferenceData>>
Public Function GetPackageReferenceDataAsync (projectFile As String, cancellationToken As CancellationToken) As Task(Of IEnumerable(Of PackageReferenceData))

Parameters

projectFile
String

Path of the project file

cancellationToken
CancellationToken

Optional cancellation token

Returns

Package reference data included in the project file.

Applies to