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>
45 lines
2.4 KiB
XML
45 lines
2.4 KiB
XML
<Project>
|
|
<!-- BRIEF §0.2 rule 1 / §19.2: zero third-party packages, everywhere. -->
|
|
<Target Name="AssertNoPackageReferences" BeforeTargets="CollectPackageReferences;_GenerateRestoreProjectSpec;BeforeBuild">
|
|
<Error Condition="'@(PackageReference)' != ''"
|
|
Code="TITANO001"
|
|
Text="PackageReference is forbidden in Titano (found: @(PackageReference)). Implement it in-house." />
|
|
</Target>
|
|
|
|
<!-- Localization catalog: i18n/<culture>/<Area>[.<culture>].resx, embedded into Titano.Core. -->
|
|
<ItemGroup Condition="'$(TitanoEmbedI18n)' == 'true'">
|
|
<EmbeddedResource Include="$(RepoRoot)i18n\**\*.resx">
|
|
<Link>i18n\%(Filename)%(Extension)</Link>
|
|
</EmbeddedResource>
|
|
</ItemGroup>
|
|
|
|
<!-- Program icons are generated from the brand geometry by Titano.Tools make-icon (BRIEF §17). -->
|
|
<PropertyGroup>
|
|
<TitanoIconDir>$(RepoRoot)artifacts/icons/</TitanoIconDir>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(TitanoIconVariant)' != ''">
|
|
<ApplicationIcon>$(TitanoIconDir)$(TitanoIconVariant).ico</ApplicationIcon>
|
|
</PropertyGroup>
|
|
<ItemGroup Condition="'$(TitanoIconVariant)' != ''">
|
|
<ProjectReference Include="$(RepoRoot)src\Titano.Tools\Titano.Tools.csproj"
|
|
ReferenceOutputAssembly="false"
|
|
SkipGetTargetFrameworkProperties="true"
|
|
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)' != '' and '$(DesignTimeBuild)' != 'true'"
|
|
AfterTargets="ResolveProjectReferences"
|
|
BeforeTargets="MarkupCompilePass1;CoreCompile">
|
|
<MSBuild Projects="$(RepoRoot)src\Titano.Tools\Titano.Tools.csproj"
|
|
Targets="GetTargetPath"
|
|
RemoveProperties="RuntimeIdentifier;SelfContained;PublishSingleFile;PublishReadyToRun;TargetFramework">
|
|
<Output TaskParameter="TargetOutputs" PropertyName="_TitanoToolsPath" />
|
|
</MSBuild>
|
|
<Exec Condition="!Exists('$(TitanoIconDir)$(TitanoIconVariant).ico')"
|
|
Command="dotnet "$(_TitanoToolsPath)" make-icon --out "$(RepoRoot)artifacts/icons"" />
|
|
</Target>
|
|
</Project>
|