/// <summary>
        /// Force the BuildManager into a state where it thinks we are on a WebHost and already precompiled
        /// </summary>
        private void ConfigureBuildManager()
        {
            var fld           = typeof(BuildManager).GetProperty("PreStartInitStage", BindingFlags.Static | BindingFlags.NonPublic);
            var psiEnumValues = typeof(BuildManager).Assembly.GetType("System.Web.Compilation.PreStartInitStage").GetEnumValues();

            fld.SetValue(null, psiEnumValues.GetValue(2), null);

            // Skip Top Level Exceptions, just like we would in precompilation
            var skip = typeof(BuildManager).GetProperty("SkipTopLevelCompilationExceptions", BindingFlags.Static | BindingFlags.NonPublic);

            skip.SetValue(null, true, null);

            // RegularAppRuntimeModeInitialize
            BuildManagerWrapper.RegularAppRuntimeModeInitialize();
        }