Skip to content
Merged
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
24 changes: 24 additions & 0 deletions docs/building-apps/build-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,18 @@ Enables the concurrent mode for the SGen garbage collector.

Only applicable to iOS, tvOS and Mac Catalyst (when not using NativeAOT).

## EventSourceSupport

When set to `false`, disables .NET's [EventSource][eventsource] support from
trimmed applications. Disabling this feature would prevent .NET diagnostic
tools like `dotnet-counters` from functioning, but at the benefit of reduced
application size.

Default: set to `false` when `Optimize` is set to `true` (which is the default
for `Release` builds), unless `$(EnableDiagnostics)` is enabled.

[eventsource]: https://learn.microsoft.com/dotnet/core/diagnostics/eventsource

## GenerateApplicationManifest

If an application manifest (`Info.plist`) should be generated.
Expand Down Expand Up @@ -583,6 +595,18 @@ The full path to the Metal compiler.

The default behavior is to use `xcrun metal`.

## MetricsSupport

When set to `false`, disables .NET's [Metrics][dotnetmetrics] support from
trimmed applications. Disabling this feature would prevent APIs such as
`System.Diagnostics.Metrics` from functioning, but at the benefit of reduced
application size.

Default: set to `false` when `Optimize` is set to `true` (which is the default
for `Release` builds), unless `$(EnableDiagnostics)` is enabled.

[dotnetmetrics]: https://learn.microsoft.com/dotnet/core/diagnostics/metrics

## MmpDebug

Enables debug mode for app bundle creation.
Expand Down
1 change: 1 addition & 0 deletions docs/configuration-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ These are options that are set when the `Optimize` property is `true` (which hap

| **Property** | **Value** |
|--------------------------------|------------|
| EventSourceSupport | false |
| HttpActivityPropagationSupport | false |
| MetricsSupport | false |

4 changes: 2 additions & 2 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@
<EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization Condition="'$(EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization)' == ''">false</EnableUnsafeBinaryFormatterInDesigntimeLicenseContextSerialization>
<EnableUnsafeBinaryFormatterSerialization Condition="'$(EnableUnsafeBinaryFormatterSerialization)' == ''">false</EnableUnsafeBinaryFormatterSerialization>
<EnableUnsafeUTF7Encoding Condition="'$(EnableUnsafeUTF7Encoding)' == ''">false</EnableUnsafeUTF7Encoding>
<EventSourceSupport Condition="'$(EventSourceSupport)' == ''">false</EventSourceSupport>
<EventSourceSupport Condition="'$(EventSourceSupport)' == '' And '$(Optimize)' == 'true' And '$(EnableDiagnostics)' != 'true'">false</EventSourceSupport>
<HttpActivityPropagationSupport Condition="'$(HttpActivityPropagationSupport)' == '' and '$(Optimize)' == 'true'">false</HttpActivityPropagationSupport>
<MetricsSupport Condition="'$(MetricsSupport)' == '' And '$(Optimize)' == 'true'">false</MetricsSupport>
<MetricsSupport Condition="'$(MetricsSupport)' == '' And '$(Optimize)' == 'true' And '$(EnableDiagnostics)' != 'true'">false</MetricsSupport>
<Http3Support Condition="'$(Http3Support)' == ''">false</Http3Support>
<InvariantGlobalization Condition="'$(InvariantGlobalization)' == ''">false</InvariantGlobalization>
<!-- Enable HybridGlobalization by default-->
Expand Down