From 99cf1cabe70116a8239d8c8012e2a64574425704 Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Mon, 2 Apr 2018 11:43:45 -0700 Subject: [PATCH] Remove duplicate 'Restore-PSPackage' --- build.psm1 | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/build.psm1 b/build.psm1 index f793e00977c..2bb5f6c243f 100644 --- a/build.psm1 +++ b/build.psm1 @@ -667,41 +667,6 @@ function Restore-PSPackage } } -function Restore-PSPackage -{ - param( - [ValidateNotNullOrEmpty()] - [Parameter()] - [string[]] $ProjectDirs, - - [ValidateNotNullOrEmpty()] - [Parameter()] - $Options = (Get-PSOptions -DefaultToNew), - - [switch] $Force - ) - - if (-not $ProjectDirs) - { - $ProjectDirs = @($Options.Top, "$PSScriptRoot/src/TypeCatalogGen", "$PSScriptRoot/src/ResGen", "$PSScriptRoot/src/Modules") - } - - if ($Force -or (-not (Test-Path "$($Options.Top)/obj/project.assets.json"))) { - - $RestoreArguments = @("--runtime",$Options.Runtime,"--verbosity") - if ($PSCmdlet.MyInvocation.BoundParameters["Verbose"].IsPresent) { - $RestoreArguments += "detailed" - } else { - $RestoreArguments += "quiet" - } - - $ProjectDirs | ForEach-Object { - Write-Log "Run dotnet restore $_ $RestoreArguments" - Start-NativeExecution { dotnet restore $_ $RestoreArguments } - } - } -} - function Restore-PSModuleToBuild { param(