diff --git a/build/RestoreGDK.ps1 b/build/RestoreGDK.ps1
index 93cafa1..c5805f9 100644
--- a/build/RestoreGDK.ps1
+++ b/build/RestoreGDK.ps1
@@ -90,9 +90,9 @@ $props = Get-Content -Path $propsfile
$props = $props -replace '.+', ("{0}" -f $GDKEditionNumber)
Set-Content -Path $propsfile -Value $props
-$args = "restore RestoreGDK.proj -PackageSaveMode nuspec -packagesDirectory `"{0}`"" -f $OutputDirectory.TrimEnd('\')
-Write-Host "##[command]nuget $args"
-$nugetrun = Start-Process -PassThru -Wait -FilePath $nuget.Path -WorkingDirectory $PSScriptRoot -ArgumentList $args -NoNewWindow
+$nugetArgs = "restore RestoreGDK.proj -PackageSaveMode nuspec -packagesDirectory `"{0}`"" -f $OutputDirectory.TrimEnd('\')
+Write-Host "##[command]nuget $nugetArgs"
+$nugetrun = Start-Process -PassThru -Wait -FilePath $nuget.Path -WorkingDirectory $PSScriptRoot -ArgumentList $nugetArgs -NoNewWindow
if ($nugetrun.ExitCode -gt 0) {
Write-Error "##[error]nuget restore failed" -ErrorAction Stop
}