Skip to content

Commit 4c866fb

Browse files
Ensure properties expands to multiple options
1 parent c914fcb commit 4c866fb

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
@@ -20,7 +20,7 @@ $ErrorActionPreference = "Stop"
2020

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

2525
if ($LastExitCode -ne 0) {
2626
throw "'Build' failed for '$solution'"
@@ -57,7 +57,7 @@ function Help() {
5757

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

6262
if ($LastExitCode -ne 0) {
6363
throw "'Pack' failed for '$solution'"
@@ -66,7 +66,7 @@ function Pack() {
6666

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

7171
if ($LastExitCode -ne 0) {
7272
throw "'Restore' failed for '$solution'"
@@ -75,7 +75,7 @@ function Restore() {
7575

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

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

0 commit comments

Comments
 (0)