Files
qhmes/yy-admin-master/.vscode/run-yyadmin.ps1

20 lines
434 B
PowerShell

$ErrorActionPreference = "Stop"
$dotnet = "C:\Program Files\dotnet\dotnet.exe"
$solution = Join-Path $PSScriptRoot "..\YY.Admin.Entry.sln"
$exe = Join-Path $PSScriptRoot "..\YY.Admin\bin\Debug\net8.0-windows10.0.19041\win-x64\YY.Admin.exe"
$exeDir = Split-Path $exe -Parent
& $dotnet build $solution -c Debug
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
Push-Location $exeDir
try {
& $exe
}
finally {
Pop-Location
}