I have a ASP.NET Core project with some simple Razor pages and a Web API controller.
I\'m using Clean Architecture as a starting point. I\'ve renamed the project names,
If you are using ReSharper it may well be related to the version. We found the issue with version 2018.3. Adding UseSolutionRelativeContentRoot resolved it.
protected override void ConfigureWebHost(IWebHostBuilder builder)
{
builder.UseKestrel()
.UseSolutionRelativeContentRoot("")
.ConfigureAppConfiguration((context, configBuilder) =>
{
// Config code
})
.UseStartup();
}