Remove user-wide dotnet config (#3144)

This commit is contained in:
Mikhail Timofeev
2021-04-09 19:07:59 +03:00
committed by GitHub
parent 4006fabbdd
commit c58b0cfbfd

View File

@@ -5,4 +5,7 @@ if (-not $latestPath.Contains($dotnetPath))
{ {
$latestPath = "$dotnetPath;$latestPath" $latestPath = "$dotnetPath;$latestPath"
[System.Environment]::SetEnvironmentVariable('PATH', $latestPath, [System.EnvironmentVariableTarget]::Machine) [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