MVC Bundling and CSS relative URLs
问题 MVC\'s bundling is returning the wrong URL in CSS images when using CssRewriteUrlTransform: I have an intranet application whose URL is, for example: http://usid01-srv002/MyApplication . It\'s in IIS\'s \"Default Web Site\". Which has the following in BundleConfig.cs : bundles.Add(new StyleBundle(\"~/bundles/jcss\") .Include(\"~/Scripts/JQueryUI/css/*.css\", new CssRewriteUrlTransform()) ); The bundling system is generating the wrong URL for any images referenced in those CSS files, yielding