Skip to content

Commit 712888d

Browse files
[xabt] rename $(EnableProfiler) to $(EnableDiagnostics) (#10166)
Context: dotnet/macios#22982 Context: dotnet/runtime#115473 (comment) We are aligning WASM, iOS, Android to all use the same property name for this.
1 parent 7486928 commit 712888d

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Documentation/docs-mobile/building-apps/build-properties.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ This property is `False` by default.
400400

401401
## AndroidEnableProfiler
402402

403-
Synonym for the [`$(EnableProfiler)`](#enableprofiler) property.
403+
Synonym for the [`$(EnableDiagnostics)`](#enablediagnostics) property.
404404

405405
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
406406
applications. If set to `true`, it includes the Mono diagnostic
@@ -1545,6 +1545,18 @@ MSBuild property also controls what
15451545
will be embedded into the `.apk`, which can impact deployment and
15461546
rebuild times.
15471547

1548+
## EnableDiagnostics
1549+
1550+
Synonym for the [`$(AndroidEnableProfiler)`](#androidenableprofiler)
1551+
property.
1552+
1553+
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
1554+
applications. If set to `true`, it includes the Mono diagnostic
1555+
component in the application. This component is the
1556+
`libmono-component-diagnostics_tracing.so` native library.
1557+
1558+
This property is `False` by default.
1559+
15481560
## EnableLLVM
15491561

15501562
A boolean property that determines whether
@@ -1559,18 +1571,6 @@ This property is `False` by default.
15591571
This property is ignored unless the
15601572
[`$(AotAssemblies)`](#aotassemblies) MSBuild property is `True`.
15611573

1562-
## EnableProfiler
1563-
1564-
Synonym for the [`$(AndroidEnableProfiler)`](#androidenableprofiler)
1565-
property.
1566-
1567-
Required for using `dotnet-trace` or `dotnet-gcdump` in Android
1568-
applications. If set to `true`, it includes the Mono diagnostic
1569-
component in the application. This component is the
1570-
`libmono-component-diagnostics_tracing.so` native library.
1571-
1572-
This property is `False` by default.
1573-
15741574
## EnableProguard
15751575

15761576
A boolean property that determines

src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<AndroidEnableRestrictToAttributes Condition=" '$(AndroidEnableRestrictToAttributes)' == '' ">obsolete</AndroidEnableRestrictToAttributes>
5353

5454
<!-- Mono components -->
55-
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">$(EnableProfiler)</AndroidEnableProfiler>
55+
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">$(EnableDiagnostics)</AndroidEnableProfiler>
5656
<AndroidEnableProfiler Condition=" '$(AndroidEnableProfiler)' == ''">false</AndroidEnableProfiler>
5757

5858
<!--

0 commit comments

Comments
 (0)