Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Documentation/docs-mobile/building-apps/build-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,21 @@ called `desugar`, on the output of the `javac` compiler. The default value is
`False` if using `$(AndroidDexTool)=dx` and `True` if
using [`$(AndroidDexTool)`](#androiddextool)=`d8`.

## AndroidEnableDiagnosticCrashReporting
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question I had here, does this need to be public?

If it's something a customer won't understand/use, it could be $(_AndroidEnableDiagnosticCrashReporting) and undocumented. It would only exist as an optional escape hatch.


A boolean property that controls whether the .NET runtime registers
its crash reporting signal handlers before Android's signal chaining
takes place.

When `True`, the .NET runtime's crash reporting logic runs first
when a signal such as `SIGSEGV` or `SIGABRT` is received, allowing
managed callstacks to be logged and a crash report JSON file to be
written to disk before Android's signal handlers terminate the process.

This property is `True` by default.

Added in .NET 11.

## AndroidEnableGooglePlayStoreChecks

A bool property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ See: https://github.com/dotnet/runtime/blob/b13715b6984889a709ba29ea8a1961db469f
On non-trimmed (Debug) builds, default to true so that debug.mono.log=gref continues to work as expected. -->
<_AndroidEnableObjectReferenceLogging Condition=" '$(_AndroidEnableObjectReferenceLogging)' == '' And '$(PublishTrimmed)' == 'true' ">false</_AndroidEnableObjectReferenceLogging>
<_AndroidEnableObjectReferenceLogging Condition=" '$(_AndroidEnableObjectReferenceLogging)' == '' And '$(PublishTrimmed)' != 'true' ">true</_AndroidEnableObjectReferenceLogging>
<!-- Enable .NET runtime crash reporting before Android's signal chaining takes place.
See: https://github.com/dotnet/runtime/pull/123735 -->
<AndroidEnableDiagnosticCrashReporting Condition=" '$(AndroidEnableDiagnosticCrashReporting)' == '' ">true</AndroidEnableDiagnosticCrashReporting>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -65,6 +68,11 @@ See: https://github.com/dotnet/runtime/blob/b13715b6984889a709ba29ea8a1961db469f
Value="$(_AndroidEnableObjectReferenceLogging)"
Trim="true"
/>
<!-- https://github.com/dotnet/runtime/pull/123735 -->
<RuntimeHostConfigurationOption Include="System.Runtime.CrashReportBeforeSignalChaining"
Value="$(AndroidEnableDiagnosticCrashReporting)"
Trim="true"
/>
</ItemGroup>

<Target Name="_ParseRuntimeConfigFiles"
Expand Down