Skip to content

Commit

Permalink
Ensure properties expands to multiple options
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding authored Feb 24, 2025
1 parent ed54b17 commit fb8f621
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $ErrorActionPreference = "Stop"

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

if ($LastExitCode -ne 0) {
throw "'Build' failed for '$solution'"
Expand Down Expand Up @@ -55,7 +55,7 @@ function Help() {

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

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

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

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

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

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

0 comments on commit fb8f621

Please sign in to comment.