-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-devtree.ps1
More file actions
12 lines (12 loc) · 783 Bytes
/
Copy pathrun-devtree.ps1
File metadata and controls
12 lines (12 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
# Dev convenience: kill any prior DevTree, rebuild Research, and launch the explorer by running the
# built EXE directly (NOT `dotnet run`, which spawns an apphost child that lingers and locks the
# output on the next rebuild). Ctrl+C stops it cleanly.
param([int]$Port = 7778)
$ErrorActionPreference = 'Stop'
Get-Process -Name POE2Radar.Research -ErrorAction SilentlyContinue | Stop-Process -Force -ErrorAction SilentlyContinue
Start-Sleep -Milliseconds 300
$proj = Join-Path $PSScriptRoot 'src/POE2Radar.Research/POE2Radar.Research.csproj'
dotnet build $proj -c Debug --nologo -v q
if ($LASTEXITCODE -ne 0) { Write-Error 'build failed'; exit 1 }
$exe = Join-Path $PSScriptRoot 'src/POE2Radar.Research/bin/Debug/net10.0-windows/POE2Radar.Research.exe'
& $exe --devtree --port $Port