Bootstrap in ASP.NET MVC 5

  • ASP.NET MVC5 project templates comes with Bootsrap (.NugetPackage already installed). You can check it in packages.config.
  • The main bootstrap files can be found in Content directory (bootstrap.css, and its minified version bootstrap.min.css) and Scripts directory (bootstrap.js, and its minified version bootstrap.min.js)

Capture

  • Bootstrap is bundled in your application by using the Web Optimization feature. Inspect Views/Shared/_Layout.cshtml and look for
@Styles.Render("~/Content/css")

and

@Scripts.Render("~/bundles/bootstrap") 

These two paths refer to bundles set up in App_Start/BundleConfig.cs:

bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
    "~/Scripts/bootstrap.js",
    "~/Scripts/respond.js"));

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