Repository navigation
[coreclr] Add crash report build property - #12136
Merged
simonrozsival merged 2 commits intoJul 17, 2026
Merged
simonrozsival merged 2 commits into
simonrozsival merged 2 commits into
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: f3e3a91e-159c-4ada-961c-67730ac064f9
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an EnableCrashReport MSBuild property to enable early crash-report generation for CoreCLR-based Android apps by emitting DOTNET_EnableCrashReport=1 into the generated __environment__.txt file. This fits into the build pipeline’s existing environment-file generation used to configure runtime behavior before startup.
Changes:
- Add
EnableCrashReporthandling to environment file generation. - Extend environment-file tests to include the new property.
- Document
EnableCrashReportin build-properties docs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/Xamarin.Android.Build.Tasks/Xamarin.Android.Common.targets | Adds DOTNET_EnableCrashReport=1 emission based on EnableCrashReport. |
| src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs | Extends environment variable tests to include crash report property scenarios. |
| Documentation/docs-mobile/building-apps/build-properties.md | Documents the new EnableCrashReport build property. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: f3e3a91e-159c-4ada-961c-67730ac064f9
simonrozsival
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add an
EnableCrashReportMSBuild property that writesDOTNET_EnableCrashReport=1into the generated Android environment file for CoreCLR and NativeAOT applications. This allows crash reporting to be enabled before runtime startup.Extend the environment-file tests to cover enabled and disabled values for CoreCLR, and document the property.
Android side of: dotnet/macios#26130
Tests were not run because the local .NET for Android SDK is not built in this worktree.