Closed eerhardt closed 10 months ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
Author: | eerhardt |
---|---|
Assignees: | - |
Labels: | `untriaged`, `area-NativeAOT-coreclr` |
Milestone: | - |
cc @vitek-karas @sbomer
Is this from https://github.com/dotnet/linker/pull/2087? That one was intentional. Do the original reasons not apply here?
Ah, good call. This is something I forgot about, and it wasn't obvious to me that the reason these warnings weren't being single-warned was because the library had IsTrimmable on it.
The good thing is that these warnings will be fixed by https://github.com/dotnet/runtime/pull/94798, so they won't be seen soon.
Description
There are a class of trimming warnings that still get emitted as
IL2026
from assemblies being referenced instead of theIL2104
that is supposed to be emitted when the warning comes from a referenced assembly.Reproduction Steps
dotnet publish
the following app(Note the same behavior occurs with
<PublishTrimmed>true</PublishTrimmed>
instead ofPublishAot
.)Expected behavior
Since the referenced library
Microsoft.Extensions.Http.Resilience
has trimming warnings the only warning that should be emitted is aIL2104
. This is the normal behavior when a referenced library has warnings.Actual behavior
3 individual warnings are emitted instead:
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response