Skip to content

Commit

Permalink
Upate NuGet.targets so that it correctly works behind proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-gogolev committed Apr 28, 2015
1 parent 5a2c81d commit 588d47e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/.nuget/NuGet.targets
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@
Log.LogMessage("Downloading latest version of NuGet.exe...");
WebClient webClient = new WebClient();
webClient.Proxy = WebRequest.DefaultWebProxy;
webClient.Proxy.Credentials = CredentialCache.DefaultCredentials;
webClient.DownloadFile("https://www.nuget.org/nuget.exe", OutputFilename);
return true;
Expand Down

0 comments on commit 588d47e

Please sign in to comment.