[release/6.0-rc2] Update sdk to 6.0.100-rc.2.21470.55#36783
[release/6.0-rc2] Update sdk to 6.0.100-rc.2.21470.55#36783wtgodbe merged 6 commits intorelease/6.0-rc2from
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. |
* 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 <wigodbe@microsoft.com> Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com> Co-authored-by: Pranav K <prkrishn@hotmail.com> Co-authored-by: Safia Abdalla <safia@microsoft.com> Co-authored-by: Stephen Halter <halter73@gmail.com> Co-authored-by: Will Godbe <wigodbe@microsoft.com> Co-authored-by: Brennan <brecon@microsoft.com>
No description provided.