Deprecating WebHostBuilder, IWebHost, and WebHost #63480
Replies: 2 comments 3 replies
-
|
Why not deprecate I don't see a point in maintaining anything other than the new |
Beta Was this translation helpful? Give feedback.
-
|
The After example seems to be misleading: using var host = new HostBuilder()
.ConfigureWebHost(webHostBuilder =>
{
webHostBuilder
.UseTestServer() // If using TestServer
.UseContentRoot(Directory.GetCurrentDirectory())
.UseStartup()
.UseKestrel(); // <--- This line should be deleted
})
.Build();
await host.StartAsync();
var testServer = host.GetTestServer();While Once |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion for announcement aspnet/Announcements#526
Beta Was this translation helpful? Give feedback.
All reactions