# Project commands (ADR 0003). Usage: ./tasks.ps1 check # The tool is built into artifacts/tasks so the solution build never overwrites a running copy. $ErrorActionPreference = 'Stop' Push-Location $PSScriptRoot try { dotnet build tools/Anubis.Tasks -c Release -o artifacts/tasks --nologo -v quiet | Out-Null if ($LASTEXITCODE -ne 0) { dotnet build tools/Anubis.Tasks -c Release -o artifacts/tasks --nologo; exit $LASTEXITCODE } dotnet artifacts/tasks/Anubis.Tasks.dll @args exit $LASTEXITCODE } finally { Pop-Location }