Skip to content
Browse files

Added proxy authentication for downloading nuget.exe

  • Loading branch information...
1 parent 692ecec commit 8ab2417fed3c791d1011c61fc0748233bb78b9ab @joaroyen committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 .nuget/NuGet.targets
View
2 .nuget/NuGet.targets
@@ -39,7 +39,6 @@
<!-- NuGet command -->
<NuGetExePath Condition=" '$(NuGetExePath)' == '' ">$(NuGetToolsPath)\nuget.exe</NuGetExePath>
<PackageSources Condition=" $(PackageSources) == '' ">@(PackageSource)</PackageSources>
-
<NuGetCommand Condition=" '$(OS)' == 'Windows_NT'">"$(NuGetExePath)"</NuGetCommand>
<NuGetCommand Condition=" '$(OS)' != 'Windows_NT' ">mono --runtime=v4.0.30319 $(NuGetExePath)</NuGetCommand>
@@ -101,6 +100,7 @@
<Code Type="Fragment" Language="cs">
<![CDATA[
try {
+ WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultNetworkCredentials;
OutputFilename = Path.GetFullPath(OutputFilename);
Log.LogMessage("Downloading latest version of NuGet.exe...");

0 comments on commit 8ab2417

Please sign in to comment.
Something went wrong with that request. Please try again.