param([ValidateSet('Debug', 'Release')] [string]$Configuration = 'Release')
$ErrorActionPreference = 'Stop'
Push-Location (Split-Path -Parent $PSScriptRoot)
try {
dotnet build XFEEDToolBox.slnx -c $Configuration -p:Platform=x64 --nologo
if ($LASTEXITCODE -ne 0) { throw 'Build failed.' }
} finally { Pop-Location }
param([ValidateSet('Debug', 'Release')] [string]$Configuration = 'Release')
$ErrorActionPreference = 'Stop'
Push-Location (Split-Path -Parent $PSScriptRoot)
try {
dotnet build XFEEDToolBox.slnx -c $Configuration -p:Platform=x64 --nologo
if ($LASTEXITCODE -ne 0) { throw 'Build failed.' }
} finally { Pop-Location }