Skip to content

Commit

Permalink
Add dotnet nuget list source (actions#3373)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketimofeev authored May 13, 2021
1 parent 0985500 commit ca0395c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion images/win/post-generation/Dotnet.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ if (-not $latestPath.Contains($dotnetPath))
[System.Environment]::SetEnvironmentVariable('PATH', $latestPath, [System.EnvironmentVariableTarget]::Machine)
}

# Delete empty nuget.config file to prevent the issue with downloading packages from nuget.org https://github.com/actions/virtual-environments/issues/3038
# Delete empty nuget.config file created by choco and recreate the config using the 'dotnet nuget list source command'
# before choco or powershell’s ancient embedded nuget does to prevent the issue with downloading packages from nuget.org
# https://github.com/actions/virtual-environments/issues/3038
Remove-Item $env:APPDATA\NuGet\NuGet.Config -Force
dotnet nuget list source

0 comments on commit ca0395c

Please sign in to comment.