コード例 #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);
        }
コード例 #2
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);
        }