mirror of
https://github.com/actions/runner-images.git
synced 2025-12-31 22:43:22 +08:00
Remove user-wide dotnet config (#3144)
This commit is contained in:
@@ -5,4 +5,7 @@ if (-not $latestPath.Contains($dotnetPath))
|
||||
{
|
||||
$latestPath = "$dotnetPath;$latestPath"
|
||||
[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
|
||||
Remove-Item $env:APPDATA\NuGet\NuGet.Config -Force
|
||||
|
||||
Reference in New Issue
Block a user