Add NugetPackageRestore method to restore packages if they don't exist (no need to open VS to build cefsharp3 now)

This commit is contained in:
amaitland
2014-10-02 20:24:49 +10:00
parent 9c5b85179b
commit 585c884489
+15
View File
@@ -194,6 +194,19 @@ function VSX
Write-Diagnostic "Finished build targeting toolchain $Toolchain"
}
function NugetPackageRestore
{
$nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
if(-not (Test-Path $nuget)) {
Die "Please install nuget. More information available at: http://docs.nuget.org/docs/start-here/installing-nuget"
}
Write-Diagnostic "Restore Nuget Packages"
# Restore packages
. $nuget restore $CefSln
}
function Nupkg
{
$nuget = Join-Path $env:LOCALAPPDATA .\nuget\NuGet.exe
@@ -209,6 +222,8 @@ function Nupkg
. $nuget pack nuget\CefSharp.WinForms.nuspec -NoPackageAnalysis -Version $Version -OutputDirectory nuget
}
NugetPackageRestore
switch -Exact ($Target) {
"nupkg"
{