Skip to content

Commit fb8f621

Browse files
Ensure properties expands to multiple options
1 parent ed54b17 commit fb8f621

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ErrorActionPreference = "Stop"
1919

2020
function Build() {
2121
$logFile = Join-Path -Path $LogDir -ChildPath "$configuration\build.binlog"
22-
& dotnet build -c "$configuration" --no-restore -v "$verbosity" /bl:"$logFile" /err "$properties" "$solution"
22+
& dotnet build -c "$configuration" --no-restore -v "$verbosity" /bl:"$logFile" /err $properties "$solution"
2323

2424
if ($LastExitCode -ne 0) {
2525
throw "'Build' failed for '$solution'"
@@ -55,7 +55,7 @@ function Help() {
5555

5656
function Pack() {
5757
$logFile = Join-Path -Path $LogDir -ChildPath "$configuration\pack.binlog"
58-
& dotnet pack -c "$configuration" --no-build --no-restore -v "$verbosity" /bl:"$logFile" /err "$properties" "$solution"
58+
& dotnet pack -c "$configuration" --no-build --no-restore -v "$verbosity" /bl:"$logFile" /err $properties "$solution"
5959

6060
if ($LastExitCode -ne 0) {
6161
throw "'Pack' failed for '$solution'"
@@ -64,7 +64,7 @@ function Pack() {
6464

6565
function Restore() {
6666
$logFile = Join-Path -Path $LogDir -ChildPath "$configuration\restore.binlog"
67-
& dotnet restore -v "$verbosity" /bl:"$logFile" /err "$properties" "$solution"
67+
& dotnet restore -v "$verbosity" /bl:"$logFile" /err $properties "$solution"
6868

6969
if ($LastExitCode -ne 0) {
7070
throw "'Restore' failed for '$solution'"
@@ -73,7 +73,7 @@ function Restore() {
7373

7474
function Test() {
7575
$logFile = Join-Path -Path $LogDir -ChildPath "$configuration\test.binlog"
76-
& dotnet test -c "$configuration" --no-build --no-restore -v "$verbosity" /bl:"$logFile" /err "$properties" "$solution"
76+
& dotnet test -c "$configuration" --no-build --no-restore -v "$verbosity" /bl:"$logFile" /err $properties "$solution"
7777

7878
if ($LastExitCode -ne 0) {
7979
throw "'Test' failed for '$solution'"

0 commit comments

Comments
 (0)