mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-06 01:57:28 +08:00
Add dotnet nuget list source (#3373)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user