Files
Chronos/Directory.Build.targets
T
Claude 83a54fb57b chore: bootstrap repository foundation
Solution layout, build rules with zero-package guard, in-house test
framework, localization runtime, brand mark rasteriser with ICO/PNG
generation, Core contracts (imaging, video, domain model, TIFF reader),
Titano.Tools (make-icon, i18n, xaml-lint, package-guard) and docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 08:59:40 +00:00

43 lines
2.2 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>
<Target Name="TitanoGenerateIcons"
Condition="'$(TitanoIconVariant)' != ''"
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 &quot;$(_TitanoToolsPath)&quot; make-icon --out &quot;$(RepoRoot)artifacts/icons&quot;" />
</Target>
</Project>