/// <summary> /// Adds the ModelsBuilder dashboard, but only when not in production mode. /// </summary> internal static IUmbracoBuilder TryAddModelsBuilderDashboard(this IUmbracoBuilder builder) { if (builder.Config.GetRuntimeMode() == RuntimeMode.Production) { builder.RemoveModelsBuilderDashboard(); } else { builder.AddModelsBuilderDashboard(); } return(builder); }