Skip to content

Commit

Permalink
Install the nuget cred provider for .NET 6 and .NET Framework
Browse files Browse the repository at this point in the history
Recently we've only been getting the .NET Core 3.1 plugin, which leaves .NET Framework-based nuget tools un-authenticated.
  • Loading branch information
AArnott committed Jun 8, 2022
1 parent 8c6b68e commit f678dd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/Install-NuGetCredProvider.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if ($IsMacOS -or $IsLinux) {

$installerScript = Join-Path $toolsPath $installerScript

if (!(Test-Path $installerScript)) {
if (!(Test-Path $installerScript) -or $Force) {
Invoke-WebRequest $sourceUrl -OutFile $installerScript
}

Expand All @@ -43,7 +43,7 @@ if ($IsMacOS -or $IsLinux) {
chmod u+x $installerScript
}

& $installerScript -Force:$Force
& $installerScript -Force:$Force -AddNetfx -InstallNet6

if ($AccessToken) {
$endpoints = @()
Expand Down

0 comments on commit f678dd3

Please sign in to comment.