Tag: 服务器

在IIS中发布后不会呈现BundleConfig

我在服务器的IIS 7中发布我的MVC网站。 当我检查页面源时,我看到我的笔记本电脑没有正确显示。 以下是在IIS服务器中发布后的页面源: Index – abc System 以下是我在笔记本电脑上测试时的页面源代码: Index – abc System 以下是BundleConfig.cs的代码: public class BundleConfig { // 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/jquery”).Include( “~/Scripts/jquery-1.10.2.min.js”)); bundles.Add(new ScriptBundle(“~/bundles/jqueryui”).Include( “~/Scripts/jquery-ui.js”)); bundles.Add(new ScriptBundle(“~/bundles/jqueryval”).Include( “~/Scripts/jquery.validate*”)); // Use the development version of Modernizr to develop with and […]