Skip to content

Document how to use ASP.NET Core with trimming #41229

Open
@JamesNK

Description

@JamesNK

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

There are instructions to enable trimming in an app, but there are challenges specific to ASP.NET Core.

For example:

  • Certain frameworks might not support trimming at all, e.g. MVC (just speculation at the moment)
  • Features may only be supported with trimming if they're excluded, e.g. controllers and DTOs must be in a non-trimmed assembly.
  • Features may not be compatible with trimming, e.g. DataProtection providers can be configured based on type names located in the registry.

Describe the solution you'd like

We should have:

  • Overall documentation page for trimming with ASP.NET Core
  • Content added to various frameworks and features that discuss how to use them with trimming
  • aka.ms links added to trim warnings that link to trimming docs. The docs provide enough information for developers to know how to deal with trim warnings.

Additional context

No response

Metadata

Metadata

Assignees

Labels

DocsThis issue tracks updating documentationarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionslinker-friendlinessTracking linker friendlinessnet8_docathonThis issue is part of the documentation push in Fall 2023.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions