20 lines
393 B
PowerShell
20 lines
393 B
PowerShell
[CmdletBinding()]
|
|
param(
|
|
[int] $Port = 5000
|
|
)
|
|
|
|
$ErrorActionPreference = 'Stop'
|
|
$engineDir = Split-Path -Parent $PSScriptRoot
|
|
$project = Join-Path $engineDir 'src/CortexEngine.App/CortexEngine.App.csproj'
|
|
|
|
Push-Location $engineDir
|
|
try {
|
|
& dotnet run --project $project -c Debug -r win-x64 -- --mcp-port $Port
|
|
$exitCode = $LASTEXITCODE
|
|
}
|
|
finally {
|
|
Pop-Location
|
|
}
|
|
|
|
exit $exitCode
|