recrownedgtk/RecrownedGTK.Tools/start_process.ps1

6 lines
354 B
PowerShell

write-Output "Attempting to start Paper test server."
$SID = Start-Process "C:\Program Files\Mono\bin\mono" -ArgumentList "--debug", "--debugger-agent=transport=dt_socket,server=y,address=127.0.0.1:55555", "bin/Debug/net48/RecrownedGTK.Tools.exe" -PassThru
$SID = $SID.Id
write-Output "Process started. PID is: $SID"
$SID | Out-File -FilePath "pid.temp"