Repository navigation
Deprecating WebHostBuilder, IWebHost, and WebHost #63480
Unanswered
BrennanConroy
asked this question in
General
Replies: 4 comments 6 replies
|
Why not deprecate I don't see a point in maintaining anything other than the new |
4 replies
|
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 |
1 reply
|
Do you have any idea when/if those deprecated classes will be completely removed? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Discussion for announcement aspnet/Announcements#526
All reactions