Skip to content

Commit 1e5a59e

Browse files
committed
Merge remote-tracking branch 'remotes/upstream/master' into JsBinding/Wip2
2 parents 6d588a7 + 1991958 commit 1e5a59e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,18 @@ function Nupkg
222222
. $nuget pack nuget\CefSharp.WinForms.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget
223223
}
224224

225+
function DownloadNuget()
226+
{
227+
$nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
228+
if(-not (Test-Path $nuget))
229+
{
230+
$client = New-Object System.Net.WebClient;
231+
$client.DownloadFile('http://nuget.org/nuget.exe', $nuget);
232+
}
233+
}
234+
235+
DownloadNuget
236+
225237
NugetPackageRestore
226238

227239
switch -Exact ($Target) {

0 commit comments

Comments
 (0)