mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
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:
@@ -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"
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user