build: debug the Windows programs from VS Code
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>
This commit is contained in:
1 parent
48923d0776
commit
19265b36c2
8 files changed
+365
-1
No files matched your search
@@ -27,8 +27,10 @@
|
||||
GlobalPropertiesToRemove="RuntimeIdentifier;SelfContained;PublishSingleFile;PublishReadyToRun;TargetFramework"
|
||||
Private="false" />
|
||||
</ItemGroup>
|
||||
<!-- Not in design-time builds (C# Dev Kit, Visual Studio): they build no project references, so Titano.Tools may not
|
||||
exist yet, and they compile nothing that needs the icon. -->
|
||||
<Target Name="TitanoGenerateIcons"
|
||||
Condition="'$(TitanoIconVariant)' != ''"
|
||||
Condition="'$(TitanoIconVariant)' != '' and '$(DesignTimeBuild)' != 'true'"
|
||||
AfterTargets="ResolveProjectReferences"
|
||||
BeforeTargets="MarkupCompilePass1;CoreCompile">
|
||||
<MSBuild Projects="$(RepoRoot)src\Titano.Tools\Titano.Tools.csproj"
|
||||
|
||||
Reference in new issue
Block a user