-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Open
Labels
dotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.
Description
See this comment copied below
Finally, recently we've learned that multi-targeting is not only very common, but basically a must have when enabling trimming. (This is based on experience trying to make some NuGets trim compatible). I think the document should have a section about the multi-targeting and our recommendations around it. But the core point is that very few libraries will only target latest TFM. By far the most common case is either library targets netstandard2.0 or it multi-targets net472, netstandard2.0 and net6.0 (or some combination of these).
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: f3d1f980-933d-a2a8-1645-098c2a4bc2a2
- Version Independent ID: 80dc5a35-aee1-fa68-5a21-78c628e9ff41
- Content: Prepare .NET libraries for trimming - .NET
- Content Source: docs/core/deploying/trimming/prepare-libraries-for-trimming.md
- Product: dotnet-fundamentals
- GitHub Login: @sbomer
- Microsoft Alias: svbomer
Copilot
Metadata
Metadata
Labels
dotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.