BundleConfig包含js,css失败

今天在做mvc项目的时候,引入了bootstrap样式。但是包含css和js的时候出错了

于是我查阅资料,好多人都说后缀名前面不能包含".",于是我把min前面的"."改成"-",就可以正常使用

但是,这是为什呢?

我继续查阅资料

The .min part is already handled by MVC - it will automatically include .js files for Debug mode and.min.js files for Release mode.

就是说mvc已经识别我们添加的文件了,只不过,只有在Release 的时候只加载.min. 的文件。所以,我们只要全部包括就好了,让mvc自己选择

posted @ 2014-10-23 10:06  王洪旭  阅读(1054)  评论(0编辑  收藏  举报