From c58b0cfbfdb9d97a06e5d024f58b96a6db4e2ede Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Fri, 9 Apr 2021 19:07:59 +0300 Subject: [PATCH] Remove user-wide dotnet config (#3144) --- images/win/post-generation/Dotnet.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/images/win/post-generation/Dotnet.ps1 b/images/win/post-generation/Dotnet.ps1 index fd43757a6..68467adba 100644 --- a/images/win/post-generation/Dotnet.ps1 +++ b/images/win/post-generation/Dotnet.ps1 @@ -5,4 +5,7 @@ if (-not $latestPath.Contains($dotnetPath)) { $latestPath = "$dotnetPath;$latestPath" [System.Environment]::SetEnvironmentVariable('PATH', $latestPath, [System.EnvironmentVariableTarget]::Machine) -} \ No newline at end of file +} + +# 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