Public/Nuget/Paket/Invoke-PaketRestore.ps1
function Invoke-PaketRestore { [CmdletBinding()] param ( [switch]$Force, [string]$Group, [switch]$WarnOnChecks , [switch]$Strict ) begin { } process { $a=@{ Strict=$Strict } Get-PaketDependenciesPath @a |ForEach-Object{ $xtraArgs = @(); if ($Force) { $xtraArgs += "--force" } if ($Group) { $xtraArgs += "--group $group" } if (!$WarnOnChecks) { $xtraArgs += "--fail-on-checks" } if ($Force){ $root=$_.DirectoryName Remove-Item "$root\paket-files\paket.restore.cached" -ErrorAction SilentlyContinue } Write-Host "Paket Restore $($_.Fullname)" -f Blue dotnet paket restore @xtraArgs } } end { } } |