Table of Contents

TryGetPackageUrlAsync Method

TryGetPackageUrlAsync(string, string?, CancellationToken)

public ValueTask<string?> TryGetPackageUrlAsync(string packageName, string? targetVersion, CancellationToken cancellationToken = default)

Parameters

packageName string
targetVersion string

null to get latest version.

cancellationToken CancellationToken

Returns

ValueTask<string>

null if package is not found.