[c#] Styles.Render in MVC4

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

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

I dont have a file or a folder called "css" inside my Content folder.

This question is related to c# asp.net-mvc razor asp.net-mvc-4

The answer is


It's calling the files included in that particular bundle which is declared inside the BundleConfig class in the App_Start folder.

In that particular case The call to @Styles.Render("~/Content/css") is calling "~/Content/site.css".

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

Similar questions with c# tag:

Similar questions with asp.net-mvc tag:

Similar questions with razor tag:

Similar questions with asp.net-mvc-4 tag: