Styles.Render in MVC4

后端 未结 8 1321
粉色の甜心
粉色の甜心 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 08:00

    As defined in App_start.BundleConfig, it's just calling

    bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));
    

    Nothing happens even if you remove that section.

提交回复
热议问题