C# 绑定后未将Jquery UI css添加到我的项目中

C# 绑定后未将Jquery UI css添加到我的项目中,c#,css,jquery-ui,asp.net-mvc-5,C#,Css,Jquery Ui,Asp.net Mvc 5,我在我的小项目中添加了jQueryUI,但是没有添加css 以下捆绑包用于css: bundles.Add(new StyleBundle("~/Content/themes/base/css").Include( "~/Content/themes/base/jquery.ui.core.css", "~/Content/themes/base/jquery.ui.resizable.css", "~/Cont

我在我的小项目中添加了jQueryUI,但是没有添加css

以下捆绑包用于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"));
在my_Layout.cshtml中包含以下内容:

 @Styles.Render("~/Content/themes/base/css", "~/Content/css")
Global.asax.cs已将BundleConfig设置为在应用程序启动时注册

我清除了我的firefox缓存,但我仍然只在我的页面上获得默认的bootstrap.css和site.css


有什么想法吗?我不确定这里还有什么要检查的,我有一些对话框正在玩crud功能,它们没有样式。

在浏览器中查看的源代码,确保CSS没有缩小。我在IIS 7中部署了捆绑包,该捆绑包采用了IIS不喜欢的缩小CSS。

虽然捆绑包最终无法正常工作,但我可以使用标签以旧的方式完成,选择我想要使用的Jquery ui css文件。

尝试更改捆绑包的名称。我以前尝试过,但没有效果。请检查css文件是否在项目/Content/themes/base/中提供的目录中,我知道您的~/Content/css捆绑包已加载?查看源代码时没有添加css。我最终以旧的方式添加了它,而没有捆绑,然后它就把它捡起来了。奇怪的错误,因为我有其他的包裹被捡到。