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
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)));