Bower is a frontend package manager. It is used in the web development world to install and uninstall JavaScript and CSS frameworks, including their fonts. The official documentation can be found here: http://bower.io/.
In this recipe, we will learn how to manage frontend dependencies with Bower.
We will assume that we have already installed Visual Studio 2015 Community Edition, which is a free version of Visual Studio for Windows.
- To install a frontend dependency with Bower in ASP.NET Core project using Visual Studio, we just have to right-click the project name in
Solution Explorer
and selectManage Bower Package
in the contextual menu:
Using the Manage Browser Packages
window, we can install, uninstall, or update packages such as Bootstrap, jQuery, AngularJS, and a lot more. The Manage Bower Packages
dialog box is now open:
- Let's install the
LoDash
library with Bower by clicking theInstall
button.
We can see in the Output...