diff --git a/CHANGELOG.md b/CHANGELOG.md index 462a62b445..ffa9a6b673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### Fixes +- Allow Sentry failures from the Sentry CLI when SENTRY_ALLOW_FAILURE is set ([#4852](https://github.com/getsentry/sentry-dotnet/pull/4852)) - The SDK now logs a specific error message when envelopes are rejected due to size limits (HTTP 413) ([#4863](https://github.com/getsentry/sentry-dotnet/pull/4863)) - Fixed thread-safety issue on Android when multiple events are captured concurrently ([#4814](https://github.com/getsentry/sentry-dotnet/pull/4814)) diff --git a/src/Sentry/buildTransitive/Sentry.targets b/src/Sentry/buildTransitive/Sentry.targets index aec5ce411b..11479ea712 100644 --- a/src/Sentry/buildTransitive/Sentry.targets +++ b/src/Sentry/buildTransitive/Sentry.targets @@ -19,6 +19,7 @@ Sentry.Attributes$(MSBuildProjectExtension.Replace('proj', '')) $([System.Guid]::NewGuid()) + true + Command="sentry-cli releases propose-version" + IgnoreExitCode="$(SentryAllowFailure)" + ContinueOnError="$(SentryAllowFailure)"> @@ -369,7 +372,7 @@ + Condition="'$(SentryCLI)' != '' and '$(SentryCreateRelease)' == 'true' and '$(_SentryRelease)' != ''"> + Condition="'$(SentryCLI)' != '' and '$(SentrySetCommits)' == 'true' and '$(_SentryRelease)' != ''">