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


C# ScriptBundle.IncludeDirectory方法代码示例

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


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

示例1: Config

        public static void Config(BundleCollection bundles)
        {
            var scriptBundle = new ScriptBundle(Path);

            scriptBundle.Include("~/Scripts/angular.js");
            scriptBundle.Include("~/Scripts/angular-ui-router.js");
            scriptBundle.Include("~/Scripts/angular-resource.js");
            scriptBundle.Include("~/Scripts/angular-cookies.js");
            scriptBundle.IncludeDirectory("~/Angular/Modules", "*.js", true);
            scriptBundle.IncludeDirectory("~/Angular/Services", "*.js", true);
            scriptBundle.IncludeDirectory("~/Angular/Controllers", "*.js", true);

            bundles.Add(scriptBundle);
        }
开发者ID:NGastaGasta,项目名称:EStore,代码行数:14,代码来源:ScriptBundleConfig.cs

示例2: RegisterBundles

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

            bundles.Add(new StyleBundle("~/Content/kendoui/css")
                .Include("~/Content/KendoUI/kendo.common.min.css","~/Content/KendoUI/kendo.default.min.css"));

            Bundle bootstrapBundle = new StyleBundle("~/Content/bootstrap/css/styles");
            bootstrapBundle.Include("~/Content/bootstrap/css/bootstrap.css", "~/Content/bootstrap/css/bootstrap-responsive.css");
            bundles.Add(bootstrapBundle);

            Bundle flattyBundle = new StyleBundle("~/Content/flatty/stylesheets/styles");
            flattyBundle.Include("~/Content/flatty/stylesheets/dark-theme.css", "~/Content/flatty/stylesheets/theme-colors.css", "~/Content/flatty/stylesheets/plugins/tabdrop/tabdrop.css");
            bundles.Add(flattyBundle);

            Bundle cssBundle = new StyleBundle("~/Content/css/styles");
            cssBundle.IncludeDirectory("~/Content/css", "*.css");
            cssBundle.IncludeDirectory("~/Content", "*.css");
            bundles.Add(cssBundle);

            Bundle lessBundle = new Bundle("~/Content/less", new LessMinify());
            lessBundle.Include("~/Content/Site.less");
            bundles.Add(lessBundle);

            Bundle scriptBundle = new ScriptBundle("~/bundles/scripts");
            scriptBundle.Include("~/Scripts/jquery-{version}.js");
            scriptBundle.Include("~/Scripts/knockout-{version}.js");
            scriptBundle.Include("~/Scripts/knockout.mapping-latest.js");
            scriptBundle.Include("~/Scripts/knockout.validation.js");
            scriptBundle.Include("~/Scripts/kendo.web.min.js");
            scriptBundle.Include("~/Scripts/knockout-kendo.min.js");
            scriptBundle.Include("~/Scripts/jquery.history.js");
            scriptBundle.Include("~/Scripts/moment.js");
            scriptBundle.Include("~/Scripts/signals.min.js");
            scriptBundle.Include("~/Scripts/crossroads.min.js");
            scriptBundle.Include("~/Content/bootstrap/js/bootstrap.js");
            scriptBundle.Include("~/Scripts/select2.js");
            scriptBundle.Include("~/Content/flatty/javascripts/plugins/mobile_events/jquery.mobile-events.min.js");
            scriptBundle.Include("~/Content/flatty/javascripts/jquery/jquery-migrate.min.js");
            scriptBundle.Include("~/Content/flatty/javascripts/nav.js");
            scriptBundle.Include("~/Content/flatty/javascripts/plugins/tabdrop/bootstrap-tabdrop.js");
            scriptBundle.Include("~/Scripts/toastr.js");
            scriptBundle.IncludeDirectory("~/App/Global", "*.js", true);
            scriptBundle.IncludeDirectory("~/App", "*.js", true);
            bundles.Add(scriptBundle);

            // Uncomment to see release configuration bundling.
            //BundleTable.EnableOptimizations = true;
        }
开发者ID:tomsean,项目名称:EventSourcingTodo,代码行数:50,代码来源:BundleConfig.cs

示例3: RegisterBundles

        public static void RegisterBundles(BundleCollection Bundles)
        {
            // Enable optimizations that remove whitespace and size of files without compromising functionality
            BundleTable.EnableOptimizations = true;

            // Login and sign up bundles
            ScriptBundle ScriptBundle = new ScriptBundle("~/bundles/js");
            StyleBundle StyleBundle = new StyleBundle("~/bundles/css");

            // Editor bundles for code editor in exercise view
            ScriptBundle EditorScripts = new ScriptBundle("~/bundles/editorjs");
            StyleBundle EditorStyles = new StyleBundle("~/bundles/editorcss");

            ScriptBundle.IncludeDirectory("~/Scripts/", "*.js");
            StyleBundle.IncludeDirectory("~/Content/", "*.css");

            EditorScripts.IncludeDirectory("~/Scripts/Editor/", "*.js");
            EditorStyles.IncludeDirectory("~/Content/Editor/", "*.css");
            EditorStyles.IncludeDirectory("~/Content/Editor/Themes/", "*.css");

            Bundles.Add(ScriptBundle);
            Bundles.Add(StyleBundle);

            Bundles.Add(EditorScripts);
            Bundles.Add(EditorStyles);
        }
开发者ID:rhinohq,项目名称:A2-Computing-Project,代码行数:26,代码来源:BundleConfig.cs

示例4: RegisterBundles

        public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true;
            Console.WriteLine("Registering SucroseBundle");
            var coreBundle = new ScriptBundle("~/Bundles/sucrose");
            var tsBundle = new Bundle("~/Bundles/typescript", new WrapperTransform());

            try
            {
                coreBundle.IncludeDirectory("~/Scripts/Sucrose", "*.js");
            }
            catch (ArgumentException)
            {
            }

            try
            {
                tsBundle.IncludeDirectory("~/TypeScript", "*.ts");
            }
            catch (ArgumentException)
            {
            }

            bundles.Add(coreBundle);
            bundles.Add(tsBundle);
        }
开发者ID:adamabdelhamed,项目名称:Sucrose,代码行数:26,代码来源:SucroseBundle.cs

示例5: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {

#if !DEBUG
            BundleTable.EnableOptimizations = true;
#endif
            var nullBuilder = new NullBuilder();
            var styleTransformer = new StyleTransformer();
            var nullOrderer = new NullOrderer();

            // 
            // CUSTOM
            //

            var sb = new ScriptBundle("~/bundles/scripts");
            sb.IncludeDirectory("~/assets/js/", "*.js", true);

            bundles.Add(sb);

            var styleBundle = new Bundle("~/bundles/styles");
            styleBundle.IncludeDirectory("~/assets/style/", "*.css", true);
            styleBundle.IncludeDirectory("~/assets/style/", "*.less", true);

            styleBundle.Builder = nullBuilder;
            styleBundle.Transforms.Add(styleTransformer);
            styleBundle.Orderer = nullOrderer;
            bundles.Add(styleBundle);
        }
开发者ID:aduggleby,项目名称:dragon,代码行数:29,代码来源:BundleConfig.cs

示例6: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var libs = new ScriptBundle("~/bundles/libs");

            libs.Include(
                "~/wwwroot/lib/jquery/dist/jquery.js",
                "~/wwwroot/lib/lodash/lodash.js",
                "~/wwwroot/lib/angular/angular.js",
                "~/wwwroot/lib/angular-ui-router/release/angular-ui-router.js",
                "~/wwwroot/lib/angular-bootstrap/ui-bootstrap-tpls.js",
                "~/wwwroot/lib/angular-local-storage/dist/angular-local-storage.js"
                );

            var app = new ScriptBundle("~/bundles/app");

            // Ensure the order is correct
            app.Include(
                "~/app/app.js",
                "~/app/Router.js"
                );

            app.IncludeDirectory("~/app/", "*.js", true);

            bundles.Add(libs);
            bundles.Add(app);
        }
开发者ID:LarsVonQualen,项目名称:Filmstrip,代码行数:27,代码来源:BundleConfig.cs

示例7: RegisterBundles

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

            var appBundle = new ScriptBundle("~/Bundles/app").Include(
               "~/scripts/angular.js",
                "~/scripts/angular-animate.js",
                "~/scripts/angular-messages.js",
                "~/scripts/angular-resource.js",
                "~/scripts/angular-route.js",
                "~/scripts/angular-sanitize.js",
                "~/scripts/angular-ui-router.js",
                "~/scripts/angular-ui/ui-bootstrap.js",
                "~/scripts/angular-ui/ui-bootstrap-tpls.js",
                "~/Scripts/html5shiv.js",
                "~/Scripts/respond.js",
                "~/scripts/ngToast.min.js",
                "~/scripts/ngToast.min.js");

            appBundle.Include(System.Configuration.ConfigurationManager.AppSettings["UseTestData"] == "true"
                ? "~/scripts/settings-test.js"
                : "~/scripts/settings-prod.js");

            appBundle.IncludeDirectory("~/app", "*.js", true);

            bundles.Add(appBundle);

            bundles.Add(new StyleBundle("~/Bundles/css").Include(
                "~/content/bootstrap.css",
                "~/content/bootstrap2-icons.css",
                "~/content/ngToast.min.css",
                "~/content/Site.css"));
        }
开发者ID:timothyfie,项目名称:EdmentumSample,代码行数:35,代码来源:BundleConfig.cs

示例8: RegisterBundles

 public static void RegisterBundles(BundleCollection bundles)
 {
     var bundle = new ScriptBundle("~/Scripts/chartup-min");
     bundle.Include("~/Scripts/charts/chart.js");
     bundle.IncludeDirectory("~/Scripts/", "*.js", true);
     bundles.Add(bundle);
 }
开发者ID:Ruben-J,项目名称:ChartUpJS,代码行数:7,代码来源:BundleConfig.cs

示例9: RegisterBundles

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

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

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/jquery.unobtrusive*",
                        "~/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/site.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));

            var mugScript = new ScriptBundle("~/bundles/mug");
            mugScript.Include("~/Scripts/knockout-2.1.0.debug.js");
            mugScript.Include("~/Scripts/mustache.js");
            mugScript.Include("~/Scripts/ko.mustache.js");
            mugScript.Include("~/Scripts/script.js");
            mugScript.IncludeDirectory("~/Scripts/ViewModel", "*.js");
            mugScript.IncludeDirectory("~/Scripts/Utils", "*.js");
            bundles.Add(mugScript);

            var bundle = new Bundle("~/Content/template");
            bundle.Transforms.Add(new TemplateTransform());
            bundle.IncludeDirectory("~/Views", "*.mustache", true);
            bundles.Add(bundle);
        }
开发者ID:fpellet,项目名称:MugSPA2012,代码行数:48,代码来源:BundleConfig.cs

示例10: RegisterBundles

        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            var angularApp = new ScriptBundle("~/angularApp").Include(

                // Vendor Scripts
                "~/scripts/jquery-{version}.js",
                "~/scripts/angular.js",
                "~/scripts/angular-animate.js",
                "~/scripts/angular-route.js",
                "~/scripts/angular-sanitize.js",
                "~/scripts/angular-ui/ui-bootstrap-tpls.js",

                "~/scripts/toastr.js",
                "~/scripts/moment.js",
                "~/scripts/spin.js",
                "~/scripts/underscore.js",

                // Bootstrapping
                "~/app/app.js",
                "~/app/config.route.js",

                // common Modules
                "~/app/common/common.js",
                "~/app/common/logger.js",
                "~/app/common/spinner.js",

                // common.bootstrap Modules
                "~/app/common/bootstrap/bootstrap.dialog.js"
                );

            // directives
            angularApp.IncludeDirectory("~/app/directives", "*.js", true);

            // services
            angularApp.IncludeDirectory("~/app/services", "*.js", true);

            // controllers
            angularApp.IncludeDirectory("~/app/admin", "*.js", true);
            angularApp.IncludeDirectory("~/app/about", "*.js", true);
            angularApp.IncludeDirectory("~/app/dashboard", "*.js", true);
            angularApp.IncludeDirectory("~/app/layout", "*.js", true);
            angularApp.IncludeDirectory("~/app/sayings", "*.js", true);
            angularApp.IncludeDirectory("~/app/sages", "*.js", true);

            bundles.Add(angularApp);

            bundles.Add(new StyleBundle("~/Content/css").Include(
                "~/content/ie10mobile.css",
                "~/content/bootstrap.css",
                "~/content/font-awesome.css",
                "~/content/toastr.css",
                "~/content/styles.css"
            ));
        }
开发者ID:jbijlsma,项目名称:Proverb,代码行数:55,代码来源:BundleConfig.cs

示例11: RegisterBundles

        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            var styles = new StyleBundle("~/Content/css");
            styles.IncludeDirectory("~/Content/", "*.css", true);
            bundles.Add(styles);

            var scripts = new ScriptBundle("~/Scripts");
            scripts.IncludeDirectory("~/Scripts/", "*.js", true);
            bundles.Add(scripts);
        }
开发者ID:danabenson,项目名称:BucketList,代码行数:11,代码来源:BundleConfig.cs

示例12: RegisterBundles

        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        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("~/javascript/plsremind.me.bundle.libraries").Include(
                "~/Scripts/jquery-{version}.js",
                //"~/Scripts/jquery-ui-{version}.js",
                "~/Scripts/bootstrap.js",
                "~/Scripts/bootstrap-datepicker.js",
                "~/Scripts/bootstrap-paginator.js",
                "~/Scripts/bootstrap-timepicker.js",
                "~/Scripts/TrafficCop.js",
                "~/Scripts/infuser.js",
                "~/Scripts/knockout-2.3.0.js",
                "~/Scripts/knockout.mapping-latest.js",
                "~/Scripts/knockout.validation.debug.js",
                "~/Scripts/koExternalTemplateEngine_all.js",
                "~/Scripts/knockout-postbox.js",
                "~/Scripts/underscore.js",
                "~/Scripts/moment.js"
                ));

            bundles.Add(new Bundle("~/css/plsremind.me.bundle.libraries").Include(
                "~/content/less/bootstrap.less",
                "~/content/bootstrap-datepicker.css",
                "~/content/bootstrap-timepicker.css",
                "~/content/less/responsive.less",
                "~/content/bootswatch.less",
                "~/content/plsremind.me.bootstrapoverride.less"
                ));

            bundles.Add(new Bundle("~/css/plsremind.me.bundle").Include(
                "~/content/plsremind.me.core.less"
                ));

            var typescriptBundle = new ScriptBundle("~/javascript/plsremind.me.bundle");
            typescriptBundle.IncludeDirectory("~/js/_output", "*.js", true);

            //typescriptBundle.IncludeDirectory("~/js", "*.js", true);
            //typescriptBundle.IncludeDirectory("~/js/Binders", "*.js", true);
            //typescriptBundle.IncludeDirectory("~/js/Models", "*.js", true);
            //typescriptBundle.IncludeDirectory("~/js/ViewModels", "*.js", true);
            //typescriptBundle.Transforms.Add(new JsTransformer());
            //typescriptBundle.Orderer = new AlphaSortedBundleOrderer();
            bundles.Add(typescriptBundle);
            
            BundleTable.EnableOptimizations = false;
        }
开发者ID:SubhasisDutta,项目名称:Subhasis-MyPrograms,代码行数:56,代码来源:BundleConfig.cs

示例13: Application_Start

        protected void Application_Start(object sender, EventArgs e)
        {
            var cssBundle = new StyleBundle("~/css");
            cssBundle.IncludeDirectory("~/content/css", "*.css");

            // Create the JS bundle
            var jsBundle = new ScriptBundle("~/js");
            jsBundle.IncludeDirectory("~/content/js", "*.js");

            BundleTable.Bundles.Add(cssBundle);
            BundleTable.Bundles.Add(jsBundle);
        }
开发者ID:kwilson,项目名称:BundlingInDotNet4-SampleCode,代码行数:12,代码来源:Global.asax.cs

示例14: RegisterScripts

        /// <summary>
        /// Registers the scripts.
        /// </summary>
        /// <param name="bundles">The bundles.</param>
        public static void RegisterScripts(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/ThirdPartyScripts/").Include(
            "~/Scripts/jquery.upload-1.0.2.js",
            "~/Scripts/jquery.unobtrusive-ajax.js",
            "~/Scripts/jquery.validate.js",
            "~/Scripts/jquery.validate.unobtrusive.js",
            "~/Scripts/jquery.validate.customValidators.js",
            "~/Scripts/jquery.dotdotdot-1.5.1.js",
            "~/Scripts/moment.js"));

            var appJsBundle = new ScriptBundle("~/AppScripts/");
            appJsBundle.Include("~/Scripts/MyEvents/myEvents.app.js");
            appJsBundle.IncludeDirectory("~/Scripts/MyEvents/Controls", "*.js");
            bundles.Add(appJsBundle);

            bundles.Add(new ScriptBundle("~/Organizer/Event/CreateScripts/").Include(
                    "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.event.create.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Event/EditScripts/").Include(
                "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.event.edit.js"));

            bundles.Add(new ScriptBundle("~/Organizer/AttendeesScripts/").Include(
                "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.attendees.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Session/ManageMaterialsScripts/").Include(
                "~/Scripts/MyEvents/Views/Organizer/myEvents.views.organizer.session.manageMaterials.js"));

            bundles.Add(new ScriptBundle("~/Organizer/Schedule/ManegeSchedule/").Include(
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.scheduleControl.js",
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.editableSessionPainter.js",
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.availableEditableSessionPainter.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Event/DetailScripts/").Include(
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.event.detail.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Session/DetailScripts/").Include(
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.session.detail.js"));

            bundles.Add(new ScriptBundle("~/Attendee/HomeScripts/").Include(
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.home.js"));

            bundles.Add(new ScriptBundle("~/Attendee/Event/Schedule/").Include(
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.scheduleControl.js",
                "~/Scripts/MyEvents/Controls/myEvents.controls.schedule.painters.sessionPainter.js",
                "~/Scripts/MyEvents/Views/Attendee/myEvents.views.attendee.event.schedule.js"));
        }
开发者ID:garymedina,项目名称:MyEvents,代码行数:51,代码来源:BundleConfig.cs

示例15: Configure

        public static void Configure()
        {
            BundleTable.Bundles.IgnoreList.Clear();
            //if (!Debugger.IsAttached)
            //{
            //    BundleTable.EnableOptimizations = true;
            //}
            BundleTable.EnableOptimizations = false;
            var jsShivBundle = new ScriptBundle("~/Assets/js/compatibility");
            jsShivBundle.Include("~/Assets/js/libs/json2.js");
            jsShivBundle.Include("~/Assets/js/libs/modernizr-2.6.2.js");
            BundleTable.Bundles.Add(jsShivBundle);

            var jsBundle = new ScriptBundle("~/Assets/js/bundle");
            jsBundle.Include("~/Assets/js/jquery-2.0.3.min.js",
                "~/Assets/js/jquery-ui-1.9.0.min.js",
                "~/Assets/js/jquery.layout-latest.js",
                "~/Assets/js/lodash.compat.js",
                "~/Assets/js/bootstrap.min.js",
                "~/Assets/js/infobox.js");

            BundleTable.Bundles.Add(jsBundle);

            var ngBundle = new ScriptBundle("~/Assets/ng-libs");
            ngBundle.Include(
                "~/Assets/js/angular/angular.min.js",
                "~/Assets/js/angular/event.js",
                "~/Assets/js/angular/angular-ui-router.min.js");

            BundleTable.Bundles.Add(ngBundle);

            var appBundle = new ScriptBundle("~/Assets/app");
            appBundle.Include(
                "~/App/app.config.js",
                "~/App/app.main.js"
                );
            appBundle.IncludeDirectory("~/App", "*.js", true);
            BundleTable.Bundles.Add(appBundle);

            var cssBundle = new StyleBundle("~/Assets/css/styles");
            cssBundle.Include(
                "~/Assets/css/bootstrap.css",
                "~/Assets/css/layout-default-latest.css",
                "~/Assets/css/app.css"
                );
            BundleTable.Bundles.Add(cssBundle);
        }
开发者ID:justinobney,项目名称:ngRentalService,代码行数:47,代码来源:BundleConfig.cs


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