We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0515e39 commit ae6451dCopy full SHA for ae6451d
BuildHelpers/Public/Get-NextNugetPackageVersion.ps1
@@ -53,8 +53,14 @@
53
{
54
Try
55
56
+ $params = @{
57
+ Name = $Item
58
+ }
59
+ if($PSBoundParameters.ContainsKey('Credential')){
60
+ $Params.add('Credential', $Credential)
61
62
$Existing = $null
- $Existing = Find-NugetPackage -Name $Item -PackageSourceUrl $PackageSourceUrl -Credential $Credential -IsLatest -ErrorAction Stop
63
+ $Existing = Find-NugetPackage @params -PackageSourceUrl $PackageSourceUrl -Credential $Credential -IsLatest -ErrorAction Stop
64
}
65
Catch
66
0 commit comments