-
Book Overview & Buying
-
Table Of Contents
Bootstrap for ASP.NET MVC - Second Edition
By :
With ASP.NET 5 and Visual Studio 2015, Microsoft provided the ability to use Bower as a client-side package manager. Bower is a package manager for web frameworks and libraries that is already very popular in the web development community.
You can read more about Bower and search the packages it provides by visiting http://bower.io/.
Microsoft's decision to allow the use of Bower and package managers other than NuGet for client-side dependencies is because it already has such a rich ecosystem.
Do not fear! NuGet is not going away. You can still use NuGet to install libraries and components, including Bootstrap 4!
To add the Bootstrap 4 source files to your project, you need to follow these steps:
bower.json and click on Add, as shown here:
bower.json file to open it and add Bootstrap 4 to the dependencies array. The code for the file should look similar to the following: {
"name": "asp.net",
"private": true,
"dependencies": {
"bootstrap": "v4.0.0-alpha.3"
}
}
bower.json file.bower.json file, Visual Studio will automatically download the dependencies into the wwwroot/lib folder of your project. In the case of Bootstrap 4 it also depends on jQuery and Tether. You'll notice that jQuery and Tether has also been downloaded as part of the Bootstrap dependency.
Change the font size
Change margin width
Change background colour