예제 #1
0
        public static void Start()
        {
            var engine = new IlaroPrecompiledMvcEngine(typeof(RazorGeneratorMvcStart).Assembly)
            {
                AlwaysUsePhysicalViews = true
            };

            ViewEngines.Engines.Insert(0, engine);

            // StartPage lookups are done by WebPages.
            VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
        }
        public static void Start()
        {
            var engine = new IlaroPrecompiledMvcEngine(typeof(RazorGeneratorMvcStart).Assembly)
            {
                AlwaysUsePhysicalViews = true
            };

            ViewEngines.Engines.Insert(0, engine);

            // StartPage lookups are done by WebPages. 
            VirtualPathFactoryManager.RegisterVirtualPathFactory(engine);
        }