Skip to content

Commit fabaa57

Browse files
fix: stop no-build pack writing project .aar files that dependent projects race on
With --no-build, pack reaches _CreateAar through ResolveReferences after the native library inputs have been extracted, so it writes <Project>.aar mid-pack. Dependent Android projects packed in parallel hash that file in ResolveLibraryProjectImports and fail with XARLP7024 on Linux. Closes #5092 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent cba98c9 commit fabaa57

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎src/Directory.Build.targets‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,11 @@
77
<Nullable>enable</Nullable>
88
</PropertyGroup>
99

10+
<!-- A no-build pack would otherwise write a redundant .aar while dependent projects hash it: https://github.com/getsentry/sentry-dotnet/issues/5092 -->
11+
<Target Name="_SentrySkipAarOnNoBuildPack" BeforeTargets="_CreateAar" Condition="'$(NoBuild)' == 'true' And '$(TargetPlatformIdentifier)' == 'android'">
12+
<ItemGroup>
13+
<_CreateAarInputs Remove="@(_CreateAarInputs)" />
14+
</ItemGroup>
15+
</Target>
16+
1017
</Project>

0 commit comments

Comments
 (0)