コード例 #1
0
        public static IMvcBuilder AddBootstrapApplicationPart(
            this IMvcBuilder mvc, bool excludeDependencies = false)
        {
            _ = mvc ?? throw new ArgumentNullException(nameof(mvc));
            if (!excludeDependencies)
            {
                mvc.AddJQueryApplicationPart();
                mvc.AddPopperJSApplicationPart();
            }

            mvc.AddApplicationPart(typeof(BootstrapMvcExtensions).Assembly);

            return(mvc);
        }