-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Update SDK to 23523.1 #51588
Update SDK to 23523.1 #51588
Conversation
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
This failure is the one where multiple tools in a |
SDK -> Installer had been blocked for a really long time & only just got unblocked yesterday - I'm gonna try bumping this to the latest |
It no longer compiles 😆 |
Looks like maybe a trimmer annotation changed?
|
@eerhardt do you know anything about the trimming issue Andrew mentioned above? |
I haven't worked on trimmer warnings in a while, but the error seems superficially reasonable: we're operating on the type of a value of type |
This looks like the original trimmer clean-up pass: #41610 Edit: and the suppression appears to still be in place |
Suppressing with an attribute works, but I wasn't sure what justification to give (and the XML file doesn't contain one?). @eerhardt? Or @JamesNK? [UnconditionalSuppressMessage("Trimming", "IL2111", Justification = "Already suppressed in Microsoft.JSInterop.WarningSuppressions.xml, but that stopped working in https://github.com/dotnet/aspnetcore/pull/51588.")] |
We shouldn't be suppressing this. This might be a bug in the latest ILLink analyzer (quite possibly from dotnet/runtime#92724 ?). @sbomer - can you take a look? Just pull this PR and
Note that this method is a local / nested method, so I'm not sure how it could be "accessed via reflection". aspnetcore/src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs Lines 388 to 405 in 82ff924
BTW - @amcasey, there are other build errors in this PR:
|
Ah, I looked some more, and this is basically dotnet/linker#2790, but now it is also in the ILLink Roslyn Analyzer, and not just in illink.exe. It looks like we did suppress this warning in the Microsoft.JSInterop.WarningSuppressions.xml file, but the ILLink Roslyn Analyzer doesn't respect/know about that. Also the warnings coming from the 2 tools are different when analyzing this code. The warning from the ILLink Roslyn Analyzer is warning about the local function. The warning from illink.exe appears to be coming from the outer function. So maybe a |
FYI @BrennanConroy for the SignalR errors. |
Just add |
Replace XML suppression with pragma: |
Agreed.
The Roslyn analyzer warning happens at this line: |
src/JSInterop/Microsoft.JSInterop/src/Infrastructure/DotNetDispatcher.cs
Outdated
Show resolved
Hide resolved
…patcher.cs Co-authored-by: Sven Boemer <sbomer@gmail.com>
Regular BuildOps update