Fix UpdateDependencies script for maestro

This commit is contained in:
Ryan Brandenburg 2018-03-26 16:06:13 -07:00 committed by Pranav K
parent 3d88d912e6
commit 428e470e83
No known key found for this signature in database
GPG Key ID: 1963DA6D96C3057A
2 changed files with 3 additions and 3 deletions

View File

@ -81,13 +81,13 @@ if ($count -gt 0) {
$ConfigVars += "--UpdatedVersions"
$varString = ""
foreach ($updatedVar in $updatedVars.GetEnumerator()) {
$varString += "$($updatedVar.Name)=$($updatedVar.Value);"
$varString += "$($updatedVar.Name)=$($updatedVar.Value)+"
}
$ConfigVars += $varString
# Restore and run the app
Write-Host "Invoking App $ProjectPath..."
Invoke-Expression "dotnet run -p `"$ProjectPath`" @ConfigVars"
Invoke-Expression "dotnet run -p `"$ProjectPath`" $ConfigVars"
if ($LASTEXITCODE -ne 0) { throw "Build failed" }
}
else {

View File

@ -19,7 +19,7 @@ namespace Microsoft.Dotnet.Scripts
{
get
{
return UpdatedVersions.Split(';',System.StringSplitOptions.RemoveEmptyEntries);
return UpdatedVersions.Split('+',System.StringSplitOptions.RemoveEmptyEntries);
}
}
}