Styles.Render in MVC4

后端 未结 8 1325
粉色の甜心
粉色の甜心 2020-12-07 07:10

In a .NET MVC4 project how does @Styles.Render works?

I mean, in @Styles.Render(\"~/Content/css\") which file is it calling?

8条回答
  •  广开言路
    2020-12-07 07:55

    Watch out for case sensitivity. If you have a file

    /Content/bootstrap.css

    and you redirect in your Bundle.config to

    .Include("~/Content/Bootstrap.css")

    it will not load the css.

提交回复
热议问题