Skip to content

Commit

Permalink
Download Nuget if required
Browse files Browse the repository at this point in the history
  • Loading branch information
amaitland committed Oct 4, 2014
1 parent b3c834b commit 3aa8fb3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,18 @@ function Nupkg
. $nuget pack nuget\CefSharp.WinForms.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget
}

function DownloadNuget()
{
$nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
if(-not (Test-Path $nuget))
{
$client = New-Object System.Net.WebClient;
$client.DownloadFile('http://nuget.org/nuget.exe', $nuget);
}
}

DownloadNuget

NugetPackageRestore

switch -Exact ($Target) {
Expand Down

0 comments on commit 3aa8fb3

Please sign in to comment.