With Asp.Net Core 2.2 I did this:
In theASP.NET Core 2.2, in your ConfigureStartup
method in's Setup.csConfigure()
I changedmethod, you can change the following:
app.UseStaticFiles();
to
app.UseStaticFiles(new StaticFileOptions
{
FileProvider = new PhysicalFileProvider(Path.Combine(
AppDomain.CurrentDomain.BaseDirectory,
"myStaticFolder")),
});
Reference / Source and in English hereReference / Source (auch auf Deutsch)