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