镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Breaking change: IsTrimmable for netstandard libs - #36775

Merged
sbomer merged 6 commits into
dotnet:mainfrom
sbomer:trimmableBreakingChange
Aug 24, 2023
Merged

sbomer merged 6 commits into
dotnet:mainfrom
sbomer:trimmableBreakingChange

Conversation

@sbomer

@sbomer sbomer commented Aug 21, 2023 •

Copy link
Copy Markdown
Member

Adds a breaking change notice about the new behavior of IsTrimmable for netstandard libraries.

Fixes dotnet/sdk#30948

Note: I only described the behavior that is shipping in RC1, and listed RC1 as the version that introduced the change. P7 actually introduced the first breaking change, but with slightly different behavior (different code, different message, and it was an error instead of a warning).


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/8.0.md Breaking changes in .NET 8
docs/core/compatibility/sdk/8.0/trimming-unsupported-targetframework.md docs/core/compatibility/sdk/8.0/trimming-unsupported-targetframework

@gewarren gewarren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably also put all mentions of "netstandard" in backticks.

Comment thread docs/core/compatibility/toc.yml Resolved
sbomer and others added 2 commits August 22, 2023 08:49
Co-authored-by: Vitek Karas <10670590+vitek-karas@users.noreply.github.com>
Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com>
- Use .NET Standard instead of netstandard
- Also mention .NET Framework

Also makes the description more thorough by mentioning PublishTrimmed
and PublishAot.
@sbomer

sbomer commented Aug 22, 2023

Copy link
Copy Markdown
Member Author

I replaced "netstandard" with ".NET Standard", and am using ".NET Framework" to refer to TFMs like net472, etc. That seems to be consistent with other docs.

@sbomer
sbomer merged commit fbe02a6 into dotnet:main Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression - NET8 Preview1 SDK won't publish trimmed self contained solution with netstandard2.1 projects

4 participants