-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
IL3000 error in MsQuicApi..cctor when publishing AOT #109958
Comments
By the way, if I change the TargetPlatform to |
I also experienced the same warning, but I didn't use |
I did get the same as well when I tried to include The message is not that intuitive either so the AOT build warnings could certainly get some improvements... |
We have been experiencing this when building an AOT console app (to deploy as an AWS lambda function) since the release of 8.0.404. I don't recall us using HttpClient in our builds that were failing (due to MSBuildShowWarningsAsErrors), but we did produce a min-repro which was almost identical to the OP's. We have not seen the problem with 9.0. We are faced with the following choices: We've chosen option a) for the time being. |
"OS Version: 10.0.23786" isn't MS QUIC only supported on Windows 11 |
We have a similar issue on MSTest, one of our acceptance test is starting to fail with the exact same error. Targeting net9.0 is also not triggering an issue. |
Tagging subscribers to this area: @dotnet/ncl |
This is a bug in the warning suppression: runtime/src/libraries/System.Net.Quic/src/System/Net/Quic/Internal/MsQuicApi.cs Lines 86 to 93 in 9cb3b72
This suppresses the warning for the Roslyn analyzer when building the repo, but not in the output IL that the AOT compiler looks at. This needs to use the As for workarounds, the only thing that can be done is suppressing the warning with NoWarn and then remembering to remove the suppression once this is fixed. |
Out of curiosity, why do we need to do this? I would expect |
We are working on a fix, in the meantime, suppressing the warning or pinning to a previous SDK version (e.g. via global.json) is probably the best available workaround. |
Describe the bug
When publishing an app that uses
HttpClient
, it results in IL3000.To Reproduce
Here's a repo that contains the minimal repro console app: https://github.com/euju-ms/MsQuicApiError
Properties\PublishProfiles\FolderProflie.pubxml
, then observe the error.Exceptions (if any)
Further technical details
dotnet --info
The text was updated successfully, but these errors were encountered: