当前位置: 首页>>代码示例>>C#>>正文


C# BundleCollection.Add方法代码示例

本文整理汇总了C#中BundleCollection.Add方法的典型用法代码示例。如果您正苦于以下问题:C# BundleCollection.Add方法的具体用法?C# BundleCollection.Add怎么用?C# BundleCollection.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BundleCollection的用法示例。


在下文中一共展示了BundleCollection.Add方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RegisterBundles

        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/js").Include(
                "~/Scripts/jquery-1.9.0.js",
                "~/Scripts/jquery.rateit.js",
                //"~/Scripts/daterangepicker/date.js",
                //"~/Scripts/daterangepicker/daterangepicker.jQuery.js",
                "~/Scripts/jquery-ui-1.9.2.custom.min.js",
                "~/Scripts/bootstrap.js",
                "~/Scripts/jquery.validate.js",
                "~/scripts/jquery.validate.unobtrusive.js",
                "~/Scripts/jquery.validate.unobtrusive-custom-for-bootstrap.js"));

            bundles.Add(new StyleBundle("~/content/css").Include(
                "~/Content/bootstrap.css",
                "~/Content/hotello.css",
                "~/Content/rateit.css",
                //"~/Content/ui.daterangepicker.css",
                "~/Content/themes/bootstrap/jquery-ui-1.9.2.custom.css"));

            bundles.Add(new StyleBundle("~/content/css-responsive").Include(
                "~/Content/bootstrap-responsive.css"));

            BundleTable.EnableOptimizations = false; // Minification is causing me problems
        }
开发者ID:pjmagee,项目名称:hotello-prototype,代码行数:26,代码来源:BundleConfig.cs

示例2: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));

            // Set EnableOptimizations to false for debugging. For more information,
            // visit http://go.microsoft.com/fwlink/?LinkId=301862
            BundleTable.EnableOptimizations = true;
        }
开发者ID:alipha,项目名称:FFRK,代码行数:26,代码来源:BundleConfig.cs

示例3: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js", "~/Scripts/jquery-ui-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                    "~/Content/themes/base/core.css",
                    "~/Content/themes/base/resizable.css",
                    "~/Content/themes/base/selectable.css",
                    "~/Content/themes/base/accordion.css",
                    "~/Content/themes/base/autocomplete.css",
                    "~/Content/themes/base/button.css",
                    "~/Content/themes/base/dialog.css",
                    "~/Content/themes/base/slider.css",
                    "~/Content/themes/base/tabs.css",
                    "~/Content/themes/base/datepicker.css",
                    "~/Content/themes/base/progressbar.css",
                    "~/Content/themes/base/theme.css"));
        }
开发者ID:tiolipexb,项目名称:TOCGOJS,代码行数:33,代码来源:BundleConfig.cs

示例4: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js",
                      "~/Scripts/flattybootstrap.min.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/simple-sidebar.css",
                      "~/Content/flattybootstrap.css",
                      "~/Content/flattymain.css",
                      "~/Content/Site.css"
            ));
        }
开发者ID:Djvacto,项目名称:SquadClock,代码行数:27,代码来源:BundleConfig.cs

示例5: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle(BasicScripts).Include(
                        "~/Scripts/jquery-{version}.js"
                                        ));

            bundles.Add(new ScriptBundle(BackOfficeScripts).Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/bootstrap.js",
                        "~/Scripts/date.js",
                        "~/Scripts/UI.js",
                        "~/Scripts/Requests.js",
                        "~/Scripts/Backoffice.js",
                        "~/Scripts/Layout.js",
                        "~/Content/Scrollbar/jquery.mousewheel.js",
                        "~/Content/Scrollbar/perfect-scrollbar.js",
                        "~/Scripts/UiControls/GroupSelection.js",
                        "~/Scripts/UiControls/MultiSelectWindow.js",
                        "~/Scripts/WebSite.js"

                                        ));

            bundles.Add(new StyleBundle(BackOfficeCss).Include(
                      "~/Content/bootstrap.css",
                      //"~/Content/bootstrap-theme.css",
                                    "~/Content/material-fullpalette.css",
                      "~/Content/Scrollbar/perfect-scrollbar.css",
                      "~/Content/site.css",
                      "~/Content/Other.css",
                      "~/Content/SideMenu.css",
                      "~/Content/monthpicker.css",
                      "~/Content/Countries.css"
                      ));



            bundles.Add(new ScriptBundle(MobileScripts).Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/bootstrap.js",
                          "~/Scripts/UiMobile.js",
                        "~/Scripts/Requests.js",
                        "~/Scripts/Backoffice.js",
                        "~/Scripts/Layout.js",
                        "~/Scripts/UiControls/GroupSelection.js",
                        "~/Scripts/UiControls/MultiSelectWindow.js",
                        "~/Scripts/WebSite.js"
                        ));


            bundles.Add(new StyleBundle(MobileCss).Include(
                "~/Content/bootstrap.css",

                "~/Content/material-fullpalette.css",
                "~/Content/mobile.css",
                "~/Content/Countries.css"
                ));



        }
开发者ID:LykkeCity,项目名称:MarketPlace,代码行数:61,代码来源:BundleConfig.cs

示例6: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));

            bundles.Add(new ScriptBundle("~/bundles/angular").Include(
                      "~/Scripts/angular.js",
                      "~/Scripts/angular-route.js",
                      "~/app/app.js",
                      "~/app/services.js",
                      "~/app/controllers.js"));
        }
开发者ID:heroictugboat,项目名称:CoderCamps,代码行数:26,代码来源:BundleConfig.cs

示例7: RegisterBundles

    public static void RegisterBundles(BundleCollection bundles) {
      bundles.IgnoreList.Clear();
      AddDefaultIgnorePatterns(bundles.IgnoreList);

      bundles.Add(
        new ScriptBundle("~/scripts/vendor")
          .Include("~/Scripts/jquery-{version}.js")
          .Include("~/Scripts/knockout-{version}.js")
          .Include("~/Scripts/sammy-{version}.js")
          .Include("~/Scripts/bootstrap.min.js")
          .Include("~/Scripts/moment.min.js")
          .Include("~/Scripts/moment.datepicker.min.js")
          .Include("~/Scripts/amplify.js")
          .Include("~/Scripts/json2.js")
        );

      bundles.Add(
        new StyleBundle("~/Content/css")
          .Include("~/Content/ie10mobile.css")
          .Include("~/Content/bootstrap.min.css")
          .Include("~/Content/bootstrap-responsive.min.css")
          .Include("~/Content/font-awesome.min.css")
		  .Include("~/Content/durandal.css")
          .Include("~/Content/app.css")
          .Include("~/Content/main.css")
          .Include("~/Content/normalize.css")
        );
    }
开发者ID:ninjaferret,项目名称:Paramore,代码行数:28,代码来源:DurandalBundleConfig.cs

示例8: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/lib/bootstrap/bootstrap.min.css",
                      "~/Content/lib/metis/metisMenu.css",
                      "~/Content/css/font-awesome.min.css",
                      "~/Content/css/common.css",
                      "~/Content/css/site.css"));

            bundles.Add(new StyleBundle("~/Content/js").Include(
                      "~/Content/lib/bootstrap/bootstrap.min.js",
                      "~/Content/lib/metis/metisMenu.js",
                      "~/Scripts/respond.js",
                      "~/Content/js/common.js",
                      "~/Content/js/layout.js"));
        }
开发者ID:bacsiden,项目名称:ch4m_c0ng,代码行数:28,代码来源:BundleConfig.cs

示例9: RegisterBundles

        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle(Links.Bundles.Scripts.jquery).Include("~/scripts/jquery-{version}.js"));
            bundles.Add(new StyleBundle(Links.Bundles.Styles.bootstrap).Include("~/styles/bootstrap*.css"));
            bundles.Add(new StyleBundle(Links.Bundles.Styles.common).Include(Links.Bundles.Content.Assets.Site_css));

        }
开发者ID:Ezeckiel2517,项目名称:T4MVC,代码行数:7,代码来源:BundleConfig.cs

示例10: RegisterBundles

        // 有关绑定的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkID=303951
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
                            "~/Scripts/WebForms/WebForms.js",
                            "~/Scripts/WebForms/WebUIValidation.js",
                            "~/Scripts/WebForms/MenuStandards.js",
                            "~/Scripts/WebForms/Focus.js",
                            "~/Scripts/WebForms/GridView.js",
                            "~/Scripts/WebForms/DetailsView.js",
                            "~/Scripts/WebForms/TreeView.js",
                            "~/Scripts/WebForms/WebParts.js"));

            // 若要使这些文件正常工作,采用适当的顺序是非常重要的;这些文件具有显式依赖关系
            bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
                    "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
                    "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
                    "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
                    "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));

            // 使用要用于开发和学习的 Modernizr 开发版本。然后,在准备好进行生产时,
            // 使用 http://modernizr.com 上的生成工具来仅选取所需的测试
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                            "~/Scripts/modernizr-*"));

            ScriptManager.ScriptResourceMapping.AddDefinition(
                "respond",
                new ScriptResourceDefinition
                {
                    Path = "~/Scripts/respond.min.js",
                    DebugPath = "~/Scripts/respond.js",
                });
        }
开发者ID:wwsunli,项目名称:test-new,代码行数:33,代码来源:BundleConfig.cs

示例11: RegisterBundles

        // Pour plus d'informations sur le regroupement, visitez http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-1.12.0.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Utilisez la version de développement de Modernizr pour le développement et l'apprentissage. Puis, une fois
            // prêt pour la production, utilisez l'outil de génération (bluid) sur http://modernizr.com pour choisir uniquement les tests dont vous avez besoin.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/moment-with-locales.js",
                      "~/Scripts/bootstrap-datepicker.js",
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/bootstrap-touchspin.js",
                      "~/Scripts/bootstrap-switch.js",
                      "~/Scripts/respond.js",
                      "~/Scripts/jquery.polyglot.language.switcher.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                     "~/Content/bootstrap.css",
                      "~/Content/bootstrap-datepicker3.css",
                      "~/Content/bootstrap-social.css",
                      "~/Content/font-awesome.css",
                      "~/Content/languages.css",
                      "~/Content/polyglot-language-switcher.css",
                      "~/Content/datepicker.css",
                      "~/Content/bootstrap-touchspin.css",
                      "~/Content/bootstrap-switch/bootstrap2/bootstrap-switch.css",
                      "~/Content/site.css"));
            BundleTable.EnableOptimizations = false;
        }
开发者ID:ikbal84,项目名称:ZakLyd,代码行数:36,代码来源:BundleConfig.cs

示例12: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/owl.carousel.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/animate.css",
                      "~/Content/custom.css",
                      "~/Content/font-awesome.css",
                      "~/Content/owl.theme.css",
                      "~/Content/owl.carousel.css",
                      "~/Content/red.css",
                      "~/Content/responsive"));
        }
开发者ID:johneric1956,项目名称:GormsenGourmet,代码行数:29,代码来源:BundleConfig.cs

示例13: RegisterBundles

        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/style.css"));
        }
开发者ID:kravchina,项目名称:BaseTemplate,代码行数:7,代码来源:BundleConfig.cs

示例14: RegisterBundles

        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254726
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/WebFormsJs").Include(
                  "~/Scripts/WebForms/WebForms.js",
                  "~/Scripts/WebForms/WebUIValidation.js",
                  "~/Scripts/WebForms/MenuStandards.js",
                  "~/Scripts/WebForms/Focus.js",
                  "~/Scripts/WebForms/GridView.js",
                  "~/Scripts/WebForms/DetailsView.js",
                  "~/Scripts/WebForms/TreeView.js",
                  "~/Scripts/WebForms/WebParts.js"));

            bundles.Add(new ScriptBundle("~/bundles/knockout").Include(
                  "~/Scripts/knockout-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/MsAjaxJs").Include(
                "~/Scripts/WebForms/MsAjax/MicrosoftAjax.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxApplicationServices.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxTimer.js",
                "~/Scripts/WebForms/MsAjax/MicrosoftAjaxWebForms.js"));

            // Use the Development version of Modernizr to develop with and learn from. Then, when you’re
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                "~/Scripts/modernizr-*"));
        }
开发者ID:schweeneh,项目名称:knockout-test,代码行数:27,代码来源:BundleConfig.cs

示例15: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.VirtualPathProvider = new EmbeddedVirtualPathProvider();
            bundles.Add(new ScriptBundle("~/ira/jquery").Include(
                        "~/ira/jquery-2.1.0.min.js"));
            bundles.Add(new ScriptBundle("~/ira/scripts").Include(
                        "~/ira/jquery.validate.min.js",
                        "~/ira/jquery.validate.unobtrusive.min.js",
                        "~/ira/chosen.jquery.min.js",
                        "~/ira/moment.min.js",
                        "~/ira/bootstrap-datetimepicker.min.js",
                        "~/ira/bootstrap.min.js",
                        "~/ira/bootstrap-spinedit.js",
                        "~/ira/marked.min.js",
                        "~/ira/bootstrap-markdown.js",
                        "~/ira/summernote.min.js",
                        "~/ira/jquery.bootstrap-duallistbox.min.js",
                        "~/ira/bootstrap.file-input.js",
                        "~/ira/ilaro.js"));

            bundles.Add(new StyleBundle("~/ira/css").Include(
                      "~/ira/bootstrap.min.css",
                      "~/ira/font-awesome.min.css",
                      "~/ira/bootstrap-datetimepicker.min.css",
                      "~/ira/chosen.min.css",
                      "~/ira/bootstrap-spinedit.css",
                      "~/ira/bootstrap-markdown.min.css",
                      "~/ira/summernote.css",
                      "~/ira/bootstrap-duallistbox.min.css",
                      "~/ira/site.css"));
        }
开发者ID:anupvarghese,项目名称:Ilaro.Admin,代码行数:32,代码来源:BundleConfig.cs


注:本文中的BundleCollection.Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。