public static void BootStrap() { if (!ViewEngines.Engines.Any(engine => engine.GetType().Equals(typeof(InputBuilderViewEngine)))) { VirtualPathProvider pathProvider = new AssemblyResourceProvider(); RegisterPathProvider(pathProvider); var resourceStore = new AssemblyResourceStore(typeof(PortableAreaRegistration), "/areas", typeof(PortableAreaRegistration).Namespace); AssemblyResourceManager.RegisterAreaResources(resourceStore); ViewEngines.Engines.Add(new InputBuilderViewEngine(new string[0])); } }