-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[release/6.0-rc2] Update sdk to 6.0.100-rc.2.21470.55 #36783
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
Conversation
No. I thought I was supposed to since my build-ops rotation fell on a Monday and this branch is still somewhat active. |
We do want to ingest the change to make preview features give an error by default, though I'm surprised that's coming in via the SDK update rather than the runtime update - I'll make the changes in a bit to suppress the error for the quic projects (CC @JamesNK @adityamandaleeka @Tratcher) |
This is concerning:
Same for |
Setting @halter73 I suspect you didn't want the result of the entire assembly being treated as preview, and instead only specific APIs were intended to be annotated. Note, if you also include Here's the preview of the documentation for this analyzer's behavior, in case that's helpful: |
So is the fix to mark the call sites with |
Instead of marking the entire assembly as enabling preview features, new APIs that are Preview Features should be annotated with the attribute. Existing APIs that are going to start calling into those new APIs get tricky, and the approach depends on your intent. public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder)
{
hostBuilder.UseQuic();
return hostBuilder.ConfigureServices(services =>
{
// Don't override an already-configured transport
services.TryAddSingleton<IConnectionListenerFactory, SocketTransportFactory>();
services.AddTransient<IConfigureOptions<KestrelServerOptions>, KestrelServerOptionsSetup>();
services.AddSingleton<IServer, KestrelServerImpl>();
});
} In this code, |
hostBuilder.UseQuic() does feature detection internally and should suppress any preview warnings. Kestrels preview features are controlled elsewhere. |
In that case, I recommend using a |
4ea814f
to
7eacd8a
Compare
It looks like there are still some call sites that need the pragmas, but the direction here looks good to me. |
Just went through the thread here. +1 to Jeff's suggestion. I also just saw the latest commit adding more pragmas. It looks correct. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CA2252 suppressions LGTM
* Update WiX to signed build (#36865) - #12078 * Always download blazor-hotreload.js from app root (#36897) The middleware that we inject always listens to the root of the app. While this might not play very nicely if the app is running off a virtual path, listening to the root is what we do with the aspnet-browser-refresh.js script and we've had no issue reports with it thus far. Fixes #35555 * Improve Results.Problem and Results.ValidationProblem APIs (#36856) * [release/6.0-rc2] Update sdk to 6.0.100-rc.2.21470.55 (#36783) * Update sdk to 6.0.100-rc.2.21470.55 Co-authored-by: Will Godbe <[email protected]> Co-authored-by: Doug Bunting <[email protected]> Co-authored-by: Pranav K <[email protected]> Co-authored-by: Safia Abdalla <[email protected]> Co-authored-by: Stephen Halter <[email protected]> Co-authored-by: Will Godbe <[email protected]> Co-authored-by: Brennan <[email protected]>
No description provided.