Search code examples
asp.netvisual-studioasp.net-corebundleminify

Where does bootstrap.bundle.min.js come from in ASP.NET Core?


When I create a brand new ASP.NET Core web application project, the following markup appears near the end of my _Layout.cshtml file.

<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>

However, this file does not exist on disk.

Can someone help me understand where this file is coming from and how I view or change it's content?


Solution

  • Visual Studios file nesting behaviour might make you believe so;
    it shows wwwroot\lib\bootstrap\dist\js\bootstrap.js (image 1 below).

    Just expand the collapsed arrows to find that bootstrap.bundle.min.js file (image 2).

    enter image description here

    enter image description here