Esempio n. 1
0
 public static void AddAbpRazorRuntimeCompilation(this IMvcCoreBuilder mvcCoreBuilder)
 {
     mvcCoreBuilder.AddRazorRuntimeCompilation();
     mvcCoreBuilder.Services.Configure <MvcRazorRuntimeCompilationOptions>(options =>
     {
         options.FileProviders.Add(
             new RazorViewEngineVirtualFileProvider(
                 mvcCoreBuilder.Services.GetSingletonInstance <IObjectAccessor <IServiceProvider> >()
                 )
             );
     });
 }