Skip to content

Developers want to be confident that their apps run successfully when trimmed to avoid debugging trimming related problems at runtime #43078

@agocke

Description

@agocke

In 5.0 we introduced linker capability to warn about code and patterns which are not trimming safe. We will build on top of that feature to resolve all warnings in our core SDKs to allow developers to enable this linker capability for their code and 3rd party libraries to give them confidence that trimming does not alter their app behaviour unexpectedly.

We'll also work on further enhancing the warning user experience to give the developers feedback about potential problems in their app as early as possible.

The primary goal for .NET6 is to have all linker related warnings resolved for core SDKs for all workloads which use publish with trimming enabled by default. In particular following workloads

  • Blazor Client/WebAssembly
  • Mobile iOS/tvOS (Xamarin.iOS)
  • Mobile Android (Xamarin.Android)
  • macOS UI (Xamarin.Mac)
  • Hybrid Blazor (optional)

Work Items

Partner dependencies:

MaciOS

Metadata

Metadata

Labels

Priority:0Work that we can't release withoutTeam:LibrariesTeam:RuntimeUser StoryA single user-facing feature. Can be grouped under an epic.area-Metalinkable-frameworkIssues associated with delivering a linker friendly framework

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions