-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET Native AOT warnings from System.Net.Http #78367
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionPublishing an app with .NET Native AOT results in analysis warnings. Devs have confidence that their app works when no errors remain, so System.Net.Http shouldn't report warnings unless an AOT incompatible API is used from the assembly. Reproduction Steps
Expected behaviorNo warning from Actual behavior
Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsDescriptionPublishing an app with .NET Native AOT results in analysis warnings. Devs have confidence that their app works when no errors remain, so System.Net.Http shouldn't report warnings unless an AOT incompatible API is used from the assembly. Reproduction Steps
Expected behaviorNo warning from Actual behaviorI think it might be one error. I enabled this setting to get details: https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-7-0#show-detailed-warnings
Regression?No response Known WorkaroundsNo response ConfigurationNo response Other informationNo response
|
The warning is potentially real if one enables EventSource (that we disabled by default in 7.0 for NativeAOT). But without opting in, it's just noise, because this won't throw. @eerhardt made DiagnosticSource AOT-safe in #76109 and that would make the warning disappear (it shouldn't be warning in 8.0 anymore). I know I said it probably doesn't meet the 7.0 bar in #76109 (comment) but I didn't consider the warning. The warning is annoying. I triggered a backport on the PR to see if we can still slam it into the December update. |
Ok, cool the backport failed because the bot cannot comment on the old PR. Fix in arcade: dotnet/arcade#11637 Meanwhile, I submitted #78372 with a cherry-pick to get a headstart on the CI. It's end of the day for me so I'll let the US time zone chase this if it's at all possible to get this in. |
This will be fixed in 7.0.3 (#78532). |
Description
Publishing an app with .NET Native AOT results in analysis warnings. Devs have confidence that their app works when no errors remain, so System.Net.Http shouldn't report warnings unless an AOT incompatible API is used from the assembly.
Reproduction Steps
<PublishAot>true</PublishAot>
Expected behavior
No warning from
System.Net.Http
.Actual behavior
I think it might be one error. I enabled this setting to get details: https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/trimming-options?pivots=dotnet-7-0#show-detailed-warnings
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: