Skip to content

Commit

Permalink
Fix build script to use default web proxy to download remote files.
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMcDonald committed Nov 12, 2014
1 parent b6b1bcc commit 423f9ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.proj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
<![CDATA[
var directory = System.IO.Path.GetDirectoryName(FileName);
System.IO.Directory.CreateDirectory(directory);
new System.Net.WebClient().DownloadFile(Address, FileName);
var client = new System.Net.WebClient();
client.Proxy = System.Net.WebRequest.DefaultWebProxy;
client.Proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
client.DownloadFile(Address, FileName);
]]>
</Code>
</Task>
Expand Down

0 comments on commit 423f9ec

Please sign in to comment.