I am migrating from asp-net core 2.2 to asp-net core 3.0, I was using this block to define my File Class Provider, as you know this is used to create dynamic razor views (dynami
DavidG provided us the solution: (I have tested and it works).
The solution is:
services.AddControllersWithViews().AddRazorRuntimeCompilation(
options => options.FileProviders.Add(new PhysicalFileProvider(appDirectory)));
In this case:
services.AddControllersWithViews().AddRazorRuntimeCompilation(
options => options.FileProviders.Add(new MyCostumizedFileProvider()));
For ASP.NET MVC Core 3, this is the way to add a file provider:
services.AddControllersWithViews()
.AddRazorRuntimeCompilation(options => options.FileProviders.Add(
new PhysicalFileProvider(appDirectory)));