From de21e6ba42766da3db3994d2e34a602508b6e147 Mon Sep 17 00:00:00 2001 From: Ed Ball Date: Sun, 18 Feb 2024 07:54:33 -0800 Subject: [PATCH] Miscellaneous updates. --- Directory.Packages.props | 6 +++--- build.ps1 | 11 +++-------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 5c6392d..91678bd 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -3,14 +3,14 @@ true - + - - + + \ No newline at end of file diff --git a/build.ps1 b/build.ps1 index 21a0bb6..9b32821 100755 --- a/build.ps1 +++ b/build.ps1 @@ -2,14 +2,9 @@ $ErrorActionPreference = 'Stop' Push-Location $PSScriptRoot try { - if (-not (Test-Path ./tools/bin/Build) -or - (Get-ChildItem ./tools/Build/* | Measure-Object LastWriteTime -Maximum).Maximum -gt - (Get-ChildItem ./tools/bin/Build/* | Measure-Object LastWriteTime -Maximum).Maximum) { - if (Test-Path ./tools/bin/Build) { Remove-Item ./tools/bin/Build -Recurse } - dotnet publish ./tools/Build/Build.csproj --output ./tools/bin/Build --nologo --verbosity quiet - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - } - dotnet ./tools/bin/Build/Build.dll $args + dotnet publish ./tools/Build/Build.csproj --artifacts-path ./artifacts --nologo --verbosity quiet + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + dotnet ./artifacts/publish/Build/release/Build.dll $args if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } } finally {