Porting from .NET Framework 4.8 to .NET Core 8

You can’t use Plugins.Add anymore, plugins need to be registered before the App and AppHost is created with services.AddPlugin, e.g:

public class AppHost() : AppHostBase("MyApp"), IHostingStartup
{
    public void Configure(IWebHostBuilder builder) => builder
        .ConfigureServices(services => {
            // Configure ASP.NET Core IOC Dependencies
            services.AddPlugin(...);
        });
}