From ee32cd45713410cc5230bb08bd7dbe2676ff5eaa Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 14 Sep 2026 18:00:11 +0200 Subject: [PATCH] Scope the CultLib pin guard to projects that reference CultMath Directory.Build.targets is imported by Unity's generated root csprojs too, which take CultMath from the UPM DLL, so IDE builds of Assembly-CSharp broke whenever the sibling CultLib was dirty, elsewhere, or missing. The guard now runs only when a ProjectReference names the CultMath project under CultLibRoot: Aetheria.Shared directly, AetherDb through the SDK's transitive project references. Checked: Assembly-CSharp skips the target; Aetheria.Shared still fails on a wrong CultLibRevision, on CULTLIB_ROOT pointing at a scratch clone on another commit, and AetherDb fails on that clone made dirty. Co-Authored-By: Claude Opus 5 --- Directory.Build.targets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.targets b/Directory.Build.targets index aaccbd63d..5bb98fe75 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,7 +1,7 @@ + Condition="'$(SkipCultLibRevisionCheck)' != 'true' and '@(ProjectReference->AnyHaveMetadataValue('Identity', '$(CultLibRoot)\packages\cultmath\src\CultMath\CultMath.csproj'))' == 'true'">