Skip to content

Instantly share code, notes, and snippets.

@grenade
Created November 25, 2013 09:19
Show Gist options
  • Save grenade/7638703 to your computer and use it in GitHub Desktop.
Save grenade/7638703 to your computer and use it in GitHub Desktop.
Grab the NuGet command line client off the internets...
Function WebGet {
Param($url, $file)
$webClient = New-Object System.Net.WebClient
$webClient.Proxy = [System.Net.WebRequest]::GetSystemWebProxy()
$webClient.Proxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials
$webClient.DownloadFile($url, $file)
}
WebGet "https://nuget.org/nuget.exe" "C:\Test\lib\nuget.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment