F5 in VS Code now starts Titano, the Uploader and the server under the C# extension's debugger, as well as the --capture runs, Titano.Tools and the test programs. Each configuration builds in Debug first and starts the program's .exe rather than its .dll, because the programs read Environment.ProcessPath (Setup's payload, the Run keys and tray icons). The server's session keeps its data and archive in out/debug/server instead of %ProgramData% and C:\TitanoArchive. The build tasks use no reused MSBuild nodes, whose cached drive-letter case made every F5 build restore and C# Dev Kit reload, and keep MSB3026 (a copy that succeeds on a retry) a warning so a file held for a moment no longer stops F5. Design-time builds skip the icon generation, which on a fresh clone ran a Titano.Tools.dll that did not exist yet (MSB3073 in VS Code), and log WPF's MC1000 about projects not built yet as a message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
189 lines
6.4 KiB
JSON
189 lines
6.4 KiB
JSON
{
|
|
// Windows programs under the C# extension's debugger. Each launch configuration builds in Debug first (tasks.json),
|
|
// then starts the program's .exe, never "dotnet <program>.dll": the programs read Environment.ProcessPath (the Run
|
|
// keys and tray icons of Titano and the Uploader, Setup's payload and the stub of its capture's sample installer).
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Titano",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build: Titano",
|
|
"program": "${workspaceFolder}/src/Titano.App/bin/Debug/net10.0-windows/Titano.exe",
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"presentation": {
|
|
"group": "1-programs",
|
|
"order": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "Titano Uploader",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build: Titano Uploader",
|
|
"program": "${workspaceFolder}/src/Titano.Uploader/bin/Debug/net10.0-windows/Titano.Uploader.exe",
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"presentation": {
|
|
"group": "1-programs",
|
|
"order": 2
|
|
}
|
|
},
|
|
{
|
|
// SQLite, as on any Windows server, with the data and the archive in out/debug/server instead of
|
|
// %ProgramData%\Titano Server and C:\TitanoArchive. The first administrator's temporary password is in
|
|
// out/debug/server/data/initial-admin-password.txt.
|
|
"name": "Titano Server",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build: Titano Server",
|
|
"program": "${workspaceFolder}/src/Titano.Server/bin/Debug/net10.0/Titano.Server.exe",
|
|
"cwd": "${workspaceFolder}",
|
|
"env": {
|
|
"TITANO_DATA_PATH": "${workspaceFolder}\\out\\debug\\server\\data",
|
|
"TITANO_ARCHIVE_PATH": "${workspaceFolder}\\out\\debug\\server\\archive"
|
|
},
|
|
"console": "internalConsole",
|
|
"serverReadyAction": {
|
|
"action": "openExternally",
|
|
"pattern": "Now listening on: https://\\S+:(\\d+)",
|
|
"uriFormat": "https://localhost:%s/admin/"
|
|
},
|
|
// The server makes its own certificate (data\tls); the ASP.NET Core development certificate plays no part.
|
|
"checkForDevCert": false,
|
|
"presentation": {
|
|
"group": "1-programs",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
// Every screen with sample data in a throw-away data folder, as the CI screenshots step runs it.
|
|
"name": "Titano (screenshots)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build: Titano",
|
|
"program": "${workspaceFolder}/src/Titano.App/bin/Debug/net10.0-windows/Titano.exe",
|
|
"args": ["--capture", "${workspaceFolder}\\out\\screenshots"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"presentation": {
|
|
"group": "2-screenshots",
|
|
"order": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "Titano Uploader (screenshots)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build: Titano Uploader",
|
|
"program": "${workspaceFolder}/src/Titano.Uploader/bin/Debug/net10.0-windows/Titano.Uploader.exe",
|
|
"args": ["--capture", "${workspaceFolder}\\out\\screenshots"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"presentation": {
|
|
"group": "2-screenshots",
|
|
"order": 2
|
|
}
|
|
},
|
|
{
|
|
// Setup has no payload outside a packed installer: the capture builds a sample one and installs nothing.
|
|
"name": "Titano Setup (screenshots)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build: Titano Setup",
|
|
"program": "${workspaceFolder}/src/Titano.Setup/bin/Debug/net10.0-windows/Titano.Setup.exe",
|
|
"args": ["--capture", "${workspaceFolder}\\out\\screenshots"],
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"presentation": {
|
|
"group": "2-screenshots",
|
|
"order": 3
|
|
}
|
|
},
|
|
{
|
|
"name": "Titano.Tools",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build: Titano.Tools",
|
|
"program": "${workspaceFolder}/src/Titano.Tools/bin/Debug/net10.0/Titano.Tools.exe",
|
|
"args": "${input:toolsArguments}",
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"presentation": {
|
|
"group": "3-development",
|
|
"order": 1
|
|
}
|
|
},
|
|
{
|
|
"name": "Tests",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
"program": "${workspaceFolder}/tests/${input:testProgram}",
|
|
"args": "${input:testArguments}",
|
|
"cwd": "${workspaceFolder}",
|
|
"console": "internalConsole",
|
|
"presentation": {
|
|
"group": "3-development",
|
|
"order": 2
|
|
}
|
|
},
|
|
{
|
|
"name": "Attach to process",
|
|
"type": "coreclr",
|
|
"request": "attach",
|
|
"processId": "${command:pickProcess}",
|
|
"presentation": {
|
|
"group": "3-development",
|
|
"order": 3
|
|
}
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "toolsArguments",
|
|
"type": "promptString",
|
|
"description": "Titano.Tools command and options (--help lists them; changelog needs --in <file> here)",
|
|
"default": "i18n check"
|
|
},
|
|
{
|
|
"id": "testProgram",
|
|
"type": "pickString",
|
|
"description": "Test program",
|
|
"options": [
|
|
{
|
|
"label": "Titano.Core.Tests",
|
|
"value": "Titano.Core.Tests/bin/Debug/net10.0/Titano.Core.Tests.exe"
|
|
},
|
|
{
|
|
"label": "Titano.Core.Windows.Tests",
|
|
"value": "Titano.Core.Windows.Tests/bin/Debug/net10.0-windows/Titano.Core.Windows.Tests.exe"
|
|
},
|
|
{
|
|
"label": "Titano.Data.Tests",
|
|
"value": "Titano.Data.Tests/bin/Debug/net10.0/Titano.Data.Tests.exe"
|
|
},
|
|
{
|
|
"label": "Titano.Server.Tests",
|
|
"value": "Titano.Server.Tests/bin/Debug/net10.0/Titano.Server.Tests.exe"
|
|
},
|
|
{
|
|
"label": "Titano.App.Tests",
|
|
"value": "Titano.App.Tests/bin/Debug/net10.0-windows/Titano.App.Tests.exe"
|
|
},
|
|
{
|
|
"label": "Titano.Tools.Tests",
|
|
"value": "Titano.Tools.Tests/bin/Debug/net10.0/Titano.Tools.Tests.exe"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "testArguments",
|
|
"type": "promptString",
|
|
"description": "Options: --filter <text|category:name>, --exclude <text>, --parallel <n>, --list, --verbose",
|
|
"default": "--parallel 1"
|
|
}
|
|
]
|
|
}
|