We can able to use the below host code while using Microsoft.Extensions.Hosting Nuget but that NuGet package does not have support for .NetFramework 4.5 project. Could you share any ideas to how to achieve that in .NetFramework 4.5?
_host = Host.CreateDefaultBuilder(e.Args)
.ConfigureAppConfiguration(c =>
{
c.SetBasePath(appLocation);
})
.ConfigureServices(ConfigureServices)
.Build();
await _host.StartAsync();
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…