在项目目录下添加一个文件.bowerrcjquery
{ "directory": "wwwroot/lib" }
JS包默认安装到webroot
的lib
文件夹,能够经过.bowerrc
文件更改安装路径。web
再添加一个 bower.json(能够选择添加)json
{ "name": "asp.net", "private": true, "dependencies": { "bootstrap": "3.3.7", "jquery": "2.2.0", "jquery-validation": "1.14.0", "jquery-validation-unobtrusive": "3.2.6" } }
重启Visual Studio【必定要重启VS】,右键点击项目,出现 管理Bower程序包,如图所示bootstrap