Fix placement of $RestoreArguments construction
This commit is contained in:
Родитель
e90465acd4
Коммит
46b4f565e3
2
init.ps1
2
init.ps1
|
@ -83,13 +83,13 @@ Push-Location $PSScriptRoot
|
|||
try {
|
||||
$HeaderColor = 'Green'
|
||||
|
||||
if (!$NoRestore -and $PSCmdlet.ShouldProcess("NuGet packages", "Restore")) {
|
||||
$RestoreArguments = @()
|
||||
if ($Interactive)
|
||||
{
|
||||
$RestoreArguments += '--interactive'
|
||||
}
|
||||
|
||||
if (!$NoRestore -and $PSCmdlet.ShouldProcess("NuGet packages", "Restore")) {
|
||||
Write-Host "Restoring NuGet packages" -ForegroundColor $HeaderColor
|
||||
dotnet restore @RestoreArguments
|
||||
if ($lastexitcode -ne 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче