.NET 7 adds a new HostApplicationBuilder API in the style of the simplified WebApplicationBuilder from ASP.NET Core 6. It does not implement IHostBuilder, so the existing extension that adds the Remora hosted service does not work with it. The recommended pattern for HostApplicationBuiler is to add an extension method for IServiceCollection (builder.Services.AddDiscordService(...)).
.NET 7 adds a new
HostApplicationBuilder
API in the style of the simplifiedWebApplicationBuilder
from ASP.NET Core 6. It does not implementIHostBuilder
, so the existing extension that adds the Remora hosted service does not work with it. The recommended pattern forHostApplicationBuiler
is to add an extension method forIServiceCollection
(builder.Services.AddDiscordService(...)
).