skip to Main Content

I installed bootstrap sass in Visual Studio 2022 but it is not included in the project

enter image description here

2

Answers


  1. I have the same issue. Using NuGet was recommended by Bootstrap: https://getbootstrap.com/docs/5.1/getting-started/download/

    Those files in the explorer are links to the actual files which can be found in C:Users< user >.nugetpackagesbootstrap5.1.3contentFilesanyanywwwrootcss and js

    However, they are not visible in the project wwwroot directory and I get a 404 error.

    I ended up just skipping this all together and using the CDN method.

    Login or Signup to reply.
  2. It’s been over a year but it might still be helpful for others. Visual Studio changed the way of installing the client libraries. Instead of using the NuGet Packages tool, it changed to use the Client-side Libraries tool. To install Bootstrap, you right-click on the project -> Add -> Client-side Library…-> Provider: unpkg, Library: bootstrap -> then select select either all files or the folders you only need, such as scss folder only. -> Install

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search