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


C# BundleCollection.ResetAll方法代码示例

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


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

示例1: RegisterBundles

        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.ResetAll();

            bundles.Add(new StyleBundle("~/Content/css/base")
                .Include("~/Content/css/icons/icomoon/styles.css",
                "~/Content/css/bootstrap.css",
                "~/Content/css/core.css",
                "~/Content/css/components.css",
                "~/Content/css/colors.css"));

            bundles.Add(new ScriptBundle("~/Scripts/core")
                .Include("~/Scripts/plugins/loaders/pace.min.js",
                    "~/Scripts/core/libraries/jquery.min.js",
                    "~/Scripts/core/libraries/bootstrap.min.js",
                    "~/Scripts/plugins/loaders/blockui.min.js"));

            bundles.Add(new ScriptBundle("~/Scripts/theme")
                .Include("~/Scripts/plugins/visualization/d3/d3.min.js",
                    "~/Scripts/plugins/visualization/d3/d3_tooltip.js",
                    "~/Scripts/plugins/forms/styling/switchery.min.js",
                    "~/Scripts/plugins/forms/styling/uniform.min.js",
                    "~/Scripts/plugins/forms/selects/bootstrap_multiselect.js",
                    "~/Scripts/plugins/ui/moment/moment.min.js",
                    "~/Scripts/plugins/pickers/daterangepicker.js"));
        }
开发者ID:seamusic,项目名称:template,代码行数:26,代码来源:BundleConfig.cs

示例2: RegisterBundles

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

            ScriptBundle loginBundle = new ScriptBundle("~/js/login");
            loginBundle.Include("~/Content/js/lib/jquery-1.8.0.min.js");
            loginBundle.Include("~/Views/Documentation/Login.js");

            bundles.Add(loginBundle);

            ScriptBundle sandboxBundle = new ScriptBundle("~/js/sandbox");
            sandboxBundle.Include("~/Content/js/lib/jquery-1.8.0.min.js");
            sandboxBundle.Include("~/Content/js/lib/jquery.slideto.min.js");
            sandboxBundle.Include("~/Content/js/lib/jquery.wiggle.min.js");
            sandboxBundle.Include("~/Content/js/lib/jquery.ba-bbq.min.js");
            sandboxBundle.Include("~/Content/js/lib/handlebars-2.0.0.js");
            sandboxBundle.Include("~/Content/js/lib/underscore-min.js");
            sandboxBundle.Include("~/Content/js/lib/backbone-min.js");
            sandboxBundle.Include("~/Content/js/swagger-ui.js");
            sandboxBundle.Include("~/Content/js/lib/highlight.7.3.pack.js");
            sandboxBundle.Include("~/Content/js/lib/marked.js");
            sandboxBundle.Include("~/Content/js/lib/swagger-oauth.js");
            sandboxBundle.Include("~/Views/Documentation/Sandbox.js");

            bundles.Add(sandboxBundle);

            bundles.Add(new StyleBundle("~/css/login").Include("~/Content/css/login.css"));

            bundles.Add(new StyleBundle("~/css/sandbox").Include("~/Content/css/reset.css",
                                                                       "~/content/css/typography.css",
                                                                       "~/content/css/screen.css"));
        }
开发者ID:viniciusstroher,项目名称:animalsAPI,代码行数:33,代码来源:BundleConfig.cs

示例3: RegisterBundles

        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive-ajax.js",
                        "~/Scripts/jquery.validate.js",
                        "~/Scripts/jquery.validate.unobtrusive.js"));
        }
开发者ID:odairkreuzberg,项目名称:simetrica,代码行数:11,代码来源:BundleConfig.cs

示例4: RegisterBundles

        internal static void RegisterBundles(BundleCollection bundleCollection)
        {
            bundleCollection.ResetAll();
            bundleCollection.Clear();

            bundleCollection.Add(GetScriptBundle("modernizr", "modernizr-{version}.js"));
            bundleCollection.Add(GetScriptBundle("library", GetJsLibraryPaths()));

            bundleCollection.Add(GetStyleBundle("site"
                , "bootstrap/bootstrap.min.css", "bootstrap/bootstrap-theme.min.css", "site.css"));
        }
开发者ID:Kakyo,项目名称:XYZ,代码行数:11,代码来源:BundleConfig.cs

示例5: RegisterBundles

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

            ScriptBundle scripts = new ScriptBundle("~/bundle/scripts");
            scripts.Include("~/Content/js/jquery-1.11.2.min.js");
            scripts.Include("~/Content/js/app.js");

            #if DEBUG
            scripts.Include("~/Content/js/debug.js");
            #endif

            bundles.Add(scripts);

            bundles.Add(new Bundle("~/bundle/views").IncludeDirectory("~/Views/Partials/", "*.html", true));
            bundles.Add(new ScriptBundle("~/bundle/viewScripts").IncludeDirectory("~/Views/Partials/", "*.js", true));

            bundles.Add(new StyleBundle("~/bundle/style").Include("~/Content/css/bootstrap.grid.css", "~/Content/css/base.css"));
        }
开发者ID:glhrmbhnrt,项目名称:DDD-Web-Application-Template,代码行数:20,代码来源:BundleConfig.cs

示例6: RegisterBundles

    /// <summary>
    /// Registers the bundles.
    /// </summary>
    /// <param name="bundles">The bundles.</param>
    public static void RegisterBundles( BundleCollection bundles )
    {
        // start with a clean bundles (this seems to have fixed the javascript errors that would occur on the first time you debug after opening the solution)
        bundles.ResetAll();

        // TODO: Add bundles for CSS files

        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" ) );

        // Omitting AjaxToolkit bundle for now. The toolkit and scriptmanager facade seem to
        // conflict with eachother, despite one being a "fix" for the other.
        //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" ) );

        bundles.Add( new ScriptBundle( "~/Scripts/Bundles/RockLibs" ).Include(
            "~/Scripts/jquery-ui-1.10.0.custom.min.js",
            "~/Scripts/bootstrap.min.js",
            "~/Scripts/bootstrap-timepicker.js",
            "~/Scripts/bootstrap-datepicker.js",
            "~/Scripts/bootbox.min.js",
            "~/Scripts/typeahead.min.js",
            "~/Scripts/jquery.fileupload.js",
            "~/Scripts/jquery.tinyscrollbar.js",
            "~/Scripts/jcrop.min.js",
            "~/Scripts/Rock/Extensions/*.js" ) );

        bundles.Add( new ScriptBundle( "~/Scripts/Bundles/RockUi" ).Include(
            "~/Scripts/Rock/dialogs.js",
            "~/Scripts/Rock/settings.js",
            "~/Scripts/Rock/Controls/*.js" ) );

        bundles.Add( new ScriptBundle( "~/Scripts/Bundles/RockValidation" ).Include(
            "~/Scripts/Rock/Validate/*.js" ) );

        // Creating a separate "Admin" bundle specifically for JS functionality that needs
        // to be included for administrative users
        bundles.Add( new ScriptBundle( "~/Scripts/Bundles/RockAdmin" ).Include(
            "~/Scripts/Rock/Admin/*.js" ) );

        // make sure the ConcatenationToken is what we want.  This is supposed to be the default, but it occassionally was an empty string.
        foreach ( var bundle in bundles )
        {
            bundle.ConcatenationToken = ";\r\n";
        }

        var cfg = (System.Web.Configuration.CompilationSection)ConfigurationManager.GetSection( "system.web/compilation" );
        if ( cfg.Debug )
        {
            // remove the js minification if debugging
            foreach ( var bundle in bundles )
            {
                bundle.Transforms.Clear();
            }
        }

        // TODO: Consider adding a MEF component to dynamically load external bundle configurations
    }
开发者ID:CentralAZ,项目名称:Rockit-CentralAZ,代码行数:72,代码来源:BundleConfig.cs

示例7: RegisterBundles

        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/Scripts/lib/jquery").Include(
                        "~/Scripts/lib/jquery-{version}.js",
                        "~/Scripts/lib/jquery.unobtrusive-ajax.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap").Include(
                        "~/Scripts/lib/bootstrap.js",
                        "~/Scripts/lib/plugins/datepicker/js/boostrap-datepicker.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/globalize/js")
                         .Include(
                             "~/Scripts/lib/globalize/globalize.js",
                             "~/Scripts/lib/globalize/globalize.culture.es-AR.js",
                             "~/Scripts/lib/globalize/globalize.init.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/jqueryval").Include(
                        "~/Scripts/lib/jquery.validate.js",
                        "~/Scripts/lib/jquery.validate.unobtrusive.js",
                        "~/Scripts/lib/jquery.validate.unobtrusive.extensions.js",
                        "~/Scripts/lib/jquery.validate.unobtrusive.custom.js",
                        "~/Scripts/lib/jquery.validate.fixes.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/bootstrap/plugins").Include(
                        "~/Scripts/lib/plugins/metisMenu/jquery.metisMenu.js",
                        "~/Scripts/lib/plugins/morris/raphael-2.1.0.min.js",
                        "~/Scripts/lib/plugins/morris/morris.js",
                        "~/Scripts/lib/plugins/autoNumeric.js",
                        "~/Scripts/lib/plugins/spin.js",
                        "~/Scripts/lib/plugins/bootstrap-timepicker.js",
                        "~/Scripts/lib/plugins/bootstrap-datepicker.js",
                        "~/Scripts/lib/plugins/bootstrap-datepicker.es.js",
                        "~/Scripts/lib/plugins/bootstrap-bootbox.js",
                        "~/Scripts/lib/typeahead.bundle.js"));

            bundles.Add(new ScriptBundle("~/Scripts/lib/comun").Include(
                        "~/Scripts/lib/javascript.object.extension.js",
                        "~/Scripts/lib/maxikiosco-util.js",
                        "~/Scripts/app/maxikiosco-spinner.js",
                        "~/Scripts/lib/plugins/select2-3.4.5/select2.min.js",
                        "~/Scripts/lib/plugins/select2-3.4.5/select2_locale_es.js",
                        "~/Scripts/lib/plugins/bootstrap-multiselect/js/prettify.js",
                        "~/Scripts/lib/plugins/bootstrap-multiselect/js/bootstrap-multiselect.js",
                        "~/Scripts/lib/plugins/shortcut.js",
                        "~/Scripts/lib/jquery.hotkeys.js",
                        "~/Scripts/lib/jquery.confirm.js",
                        "~/Scripts/lib/jsrender.js",
                        "~/Scripts/lib/jquery.cursortable.js",
                         "~/Scripts/app/bootstrapAlerts.js"));

            bundles.Add(new ScriptBundle("~/Scripts/app/admin").Include(
                       "~/Scripts/app/sb-admin.js",
                       "~/Scripts/app/maxikiosco.unobtrusive.js",
                       "~/Scripts/app/dataservices/*.js",
                       "~/Scripts/app/maxikiosco-reportar-error.js",
                       "~/Scripts/app/maxikiosco-util.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("~/Scripts/lib/modernizr").Include(
                        "~/Scripts/lib/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css",
                "~/Content/spin.css",
                "~/Content/maxikiosco-form.css",
                "~/Content/maxikiosco-table.css"));

            bundles.Add(new StyleBundle("~/Content/bootstrap/css/styles")
                            .Include("~/Content/bootstrap/css/bootstrap.css",
                                     "~/Content/bootstrap/css/bootstrap-theme.css",
                                     "~/Content/bootstrap/css/select2.css",
                                     "~/Content/bootstrap/css/select2-bootstrap.css",
                                     "~/Content/bootstrap/css/boostrap-multiselect.css",
                                     "~/Content/bootstrap/css/bootstrap-timepicker.css",
                                     "~/Content/bootstrap/css/bootstrap-datepicker.css",
                                     "~/Content/bootstrap/css/typeaheadjs.css"));

            bundles.Add(new StyleBundle("~/Content/admin/css/styles")
                           .Include("~/Content/admin/css/font-awesome.css",
                                    "~/Content/admin/css/morris-0.4.3.min.css",
                                    "~/Content/admin/css/timeline.css",
                                    "~/Content/admin/css/sb-admin.css"));
        }
开发者ID:pragmasolutions,项目名称:Maxikioscos,代码行数:87,代码来源:BundleConfig.cs

示例8: RegisterBundles

        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Clear();
            bundles.ResetAll();

            bundles.Add(new ScriptBundle("~/bundles/angular").Include(
                      "~/Scripts/jquery-1.10.2.js",
                      "~/Scripts/angular.js",
                      "~/Scripts/angular-route.js",
                       "~/Scripts/angular-animate.js",
                      "~/Scripts/angular-cache.js"));

            bundles.Add(new ScriptBundle("~/bundles/lib").Include(
                       "~/Scripts/d3.js",
                       "~/Scripts/lodash.js",
                       "~/Scripts/canvg/rgbcolor.js",
                        "~/Scripts/canvg/StackBlur.js",
                       "~/Scripts/canvg/canvg.js",
                        "~/Scripts/html2canvas.js",
                       "~/Scripts/jspdf.js",
                       "~/kendo/js/jszip.js",
                        "~/Scripts/cdnlibs/leaflet.js",
                       "~/Scripts/cdnlibs/queue.v1.js",
                       "~/Scripts/cdnlibs/d3-tip.js",
                       "~/Scripts/ui.js",
                       "~/app/app.js",
                        "~/app/directive/app_localization.js"));

            bundles.Add(new ScriptBundle("~/bundles/app").Include(
                     /* Directives */
                     "~/app/directive/directive.js",
                    "~/app/directive/barChart.js",
                    "~/app/directive/donutChart.js",
                    "~/app/directive/infoChart.js",
                    "~/app/directive/lineChart.js",
                    "~/app/directive/schoolMap.js",
                    "~/app/directive/countyMap.js",
                    /* Factories */
                    "~/app/factories/campus/campusGeneral.js",
                    "~/app/factories/campus/campusStudent.js",
                    "~/app/factories/campus/campusStaff.js",
                    "~/app/factories/campus/campusAdmissions.js",
                    "~/app/factories/campus/campusC4Long.js",
                    "~/app/factories/campus/campusLong.js",
                    "~/app/factories/campus/campusDropout.js",
                    "~/app/factories/campus/campusAPIB.js",
                    "~/app/factories/campus/campusCCReady.js",
                     "~/app/factories/campus/campusStaar.js",
                    "~/app/factories/district/districtGeneral.js",
                    "~/app/factories/district/districtStudent.js",
                    "~/app/factories/district/districtLong.js",
                    "~/app/factories/district/districtStaar.js",
                    "~/app/factories/district/districtStaff.js",
                    /* Services */
                    "~/app/services/campusData.js",
                    "~/app/services/districtData.js",
                    "~/app/services/district2015Data.js",
                    "~/app/services/allData.js",
                    "~/app/services/sqlData.js",
                    "~/app/services/aeisData.js",
                    "~/app/services/mapper.js",
                    "~/app/services/fieldMapper.js",
                     "~/app/services/campusReportData.js",
                     "~/app/services/reportData.js",
                     "~/app/services/gridView.js",
                    /* Controllers */
                    "~/app/controllers/campus2015Controller.js",
                    "~/app/controllers/district2015Controller.js",
                    "~/app/controllers/donorsController.js",
                    "~/app/controllers/scorecardController.js",
                    "~/app/controllers/teksController.js",
                    "~/app/controllers/actExpFinalController.js",
                    "~/app/controllers/explanation_aeisController.js",
                    "~/app/controllers/explanation_staarController.js",
                    "~/app/controllers/bulkController.js",
                    "~/app/controllers/literacy.js",
                    //"~/app/controllers/naepController.js",
                    "~/app/controllers/spreadsheetController.js",
                    "~/app/controllers/signinController.js",
                    "~/app/controllers/signupController.js",
                    "~/app/controllers/campusReportController.js",
                    "~/app/controllers/reportController.js",
                     /* Themes JS */
                     "~/kendo/js/kendo.all.min.js",
                     "~/Scripts/bootstrap.js"
                    ));

            bundles.Add(new StyleBundle("~/bundles/css")
                .Include("~/Content/literacy.css")
                .Include("~/Content/main.css"));

            //BundleTable.EnableOptimizations = true;
        }
开发者ID:commitdata,项目名称:dashboard_original,代码行数:94,代码来源:BundleConfig.cs


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