Skip to content

Commit 2945d2e

Browse files
Update src/Sentry/buildTransitive/Sentry.targets
Co-authored-by: James Crosswell <[email protected]>
1 parent d97fc75 commit 2945d2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Sentry/buildTransitive/Sentry.targets

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,12 @@
271271
<Warning Condition="'$(_SentryCLIExitCode)' != '0'" Text="Sentry CLI could not upload debug files." />
272272
</Target>
273273

274+
<!-- Only for the application assembly: https://github.com/getsentry/sentry-dotnet/pull/4647 -->
274275
<Target Name="UpdateAndroidMetadata"
275276
BeforeTargets="GetAssemblyAttributes"
277+
Condition="'$(AndroidApplication)' == 'True'
278+
and $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'
279+
BeforeTargets="GetAssemblyAttributes"
276280
Condition="'$(AndroidApplication)' == 'True'
277281
and $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'
278282
and '$(SentryUploadAndroidProGuardMapping)' == 'true'">

0 commit comments

Comments
 (0)