本文整理汇总了C#中BundleCollection类的典型用法代码示例。如果您正苦于以下问题:C# BundleCollection类的具体用法?C# BundleCollection怎么用?C# BundleCollection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BundleCollection类属于命名空间,在下文中一共展示了BundleCollection类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RegisterBundles
// Дополнительные сведения о Bundling см. по адресу 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*"));
// Используйте версию Modernizr для разработчиков, чтобы учиться работать. Когда вы будете готовы перейти к работе,
// используйте средство построения на сайте http://modernizr.com, чтобы выбрать только нужные тесты.
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"));
}
示例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")
.Include("~/Scripts/jquery.unobtrusive-ajax.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/bootstrap-datepicker.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/datepicker.css",
"~/Content/site.css"));
bundles.Add(new ScriptBundle("~/liberty").Include(
"~/Scripts/liberty.js"));
// Set EnableOptimizations to false for debugging. For more information,
// visit http://go.microsoft.com/fwlink/?LinkId=301862
BundleTable.EnableOptimizations = false;
}
示例3: RegisterBundles
// For more information on Bundling, visit 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"));
// Order is very important for these files to work, they have explicit dependencies
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-*"));
ScriptManager.ScriptResourceMapping.AddDefinition(
"respond",
new ScriptResourceDefinition
{
Path = "~/Scripts/respond.min.js",
DebugPath = "~/Scripts/respond.js",
});
}
示例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*"));
bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include(
"~/Scripts/jquery.unobtrusive-ajax*"));
// 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"));
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css",
"~/Content/bootstrap-responsive.css"));
bundles.Add(new ScriptBundle("~/bundles/common").Include(
"~/Scripts/common.js"
));
}
示例5: BundleBootstrapMain
private static void BundleBootstrapMain(BundleCollection bundleCollection)
{
//site base
bundleCollection.Add(
new StyleBundle("~/css/main")
.Include("~/Content/bootstrap/main/dist/css/bootstrap.*")
);
bundleCollection.Add(
new ScriptBundle("~/js/main")
.Include("~/Content/script/jquery-{version}.js",
"~/Content/bootstrap/main/dist/js/bootstrap.*",
"~/Content/script/bootbox.js")
);
//bootstrap select
bundleCollection.Add(new StyleBundle("~/bs_select_css").
Include("~/Content/bootstrap/Select/dist/css/bootstrap-select.*"));
bundleCollection.Add(new ScriptBundle("~/bs_select_js").
Include("~/Content/bootstrap/Select/dist/js/bootstrap-select.*",
"~/Content/bootstrap/Select/dist/js/i18n/defaults-zh_CN.js"));
//bootstrap table
bundleCollection.Add(new StyleBundle("~/bs_table_css").Include("~/Content/bootstrap/table/dist/bootstrap-table.css"));
bundleCollection.Add(new ScriptBundle("~/bs_table_js").Include("~/Content/bootstrap/table/dist/bootstrap-table.js",
"~/Content/bootstrap/table/dist/locale/bootstrap-table-zh-CN.js"));
BundleTable.EnableOptimizations = true;
}
示例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"));
bundles.Add(new ScriptBundle("~/bundles/validate")
.Include("~/Scripts/jquery.validate.min.js", "~/Scripts/jquery.validate.unobtrusive.min.js")
.Include("~/Scripts/highcharts.js"));
/*
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
*/
bundles.Add(new ScriptBundle("~/bundles/jqueryajax").Include(
"~/Scripts/jquery.unobtrusive-ajax*"));
// 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"));
}
示例7: 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"
));
}
示例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",
"~/Scripts/jquery.unobtrusive-ajax.min.js")); // Dodaj AJAX unobtrusive.
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/LoadingAjax.css", // Dodaj AJAX css Loading.
"~/Content/ErrorDisplay.css", // Dodaj Error css.
"~/Content/sbAdmin2/font-awesome.css",
"~/Content/sbAdmin2/sb-admin-2.css"));
bundles.Add(new ScriptBundle("~/bundles/sbAdmin2").Include(
"~/Scripts/sbAdmin2/metisMenu.js",
"~/Scripts/sbAdmin2/excanvas.min.js",
"~/Scripts/sbAdmin2/jquery.flot*",
"~/Scripts/sbAdmin2/sb-admin-2.js",
"~/Scripts/nScripts.js"));
}
示例9: 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}.debug.js")
.Include("~/scripts/sammy-{version}.js")
.Include("~/scripts/toastr.js")
.Include("~/scripts/Q.js")
.Include("~/scripts/breeze.debug.js")
.Include("~/scripts/bootstrap.js")
.Include("~/scripts/moment.js")
);
bundles.Add(
new StyleBundle("~/Content/css")
.Include("~/Content/ie10mobile.css")
.Include("~/Content/bootstrap.css")
.Include("~/Content/bootstrap-responsive.css")
.Include("~/Content/durandal.css")
.Include("~/Content/toastr.css")
.Include("~/Content/app.css")
);
}
示例10: 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-*"));
}
示例11: 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/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 ScriptBundle("~/bundles/app").Include(
"~/Scripts/App/kendo-custom-bindings.js",
"~/Scripts/App/kendo-cart-menu-widget.js",
"~/Scripts/App/config.js",
"~/Scripts/App/cart.js",
"~/Scripts/App/store.js",
"~/Scripts/App/shared-layout.js"));
bundles.Add(new ScriptBundle("~/bundles/libs").Include(
"~/Scripts/date.js"));
}
示例12: RegisterBundles
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*"));
bundles.Add(new ScriptBundle("~/bundles/noty").Include(
"~/Scripts/noty/jquery.noty.js",
"~/Scripts/noty/layouts/topLeft.js",
"~/Scripts/noty/themes/relax.js"));
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
"~/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"));
}
示例13: RegisterBundles
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/Vendor/jquery-{version}.js",
"~/Scripts/Vendor/toastr.js"));
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
"~/Scripts/Vendor/jquery.validate*"));
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
"~/Scripts/Vendor/modernizr-*"));
//Angular Bundle
bundles.Add(new ScriptBundle("~/bundles/angularJs").Include(
"~/Scripts/Vendor/Angular/angular.js",
"~/Scripts/Vendor/Angular/angular-mocks.js",
"~/Scripts/Vendor/Angular/angular-animate.js",
"~/Scripts/Vendor/Angular/angular-route.js",
"~/Scripts/Vendor/Angular/angular-sanitize.js",
"~/Scripts/Vendor/Angular/angular-datepicker.min.js"));
bundles.Add(new ScriptBundle("~/bundles/app").Include(
"~/Scripts/App/app.js",
"~/Scripts/App/controllers/shellController.js",
"~/Scripts/App/services/songsService.js",
"~/Scripts/App/services/playlistsService.js",
"~/Scripts/App/services/authorsService.js",
"~/Scripts/App/controllers/masterController.js",
"~/Scripts/App/controllers/playlistDetailsController.js"));
}
示例14: RegisterBundles
// 如需「搭配」的詳細資訊,請瀏覽 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*"));
// 使用開發版本的 Modernizr 進行開發並學習。然後,當您
// 準備好實際執行時,請使用 http://modernizr.com 上的建置工具,只選擇您需要的測試。
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"));
// 將 EnableOptimizations 設為 false 以進行偵錯。如需詳細資訊,
// 請造訪 http://go.microsoft.com/fwlink/?LinkId=301862
BundleTable.EnableOptimizations = true;
}
示例15: 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*"));
bundles.Add(new StyleBundle("~/Content/css")
.Include("~/Content/main_style.css",
"~/Content/design.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"));
}