Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 (15.5.2) bower missing under dependencies

So i just installed a clean version of Windows 10 and Visual Studio 2017 Community.

Trying to create a brand new ASP.NET Core 2.0 project i saw that Bower is missing under the Dependencies node.

enter image description here

Bootstrap and jquery packages are already installed but i cannot manage them and cannot seem to find a configuration file either.

I searched the web for this problem but didn't found nothing useful.

Is there an issue with the VS 15.5.2 update? How can I fix this?

like image 692
Cristian Szpisjak Avatar asked Dec 16 '17 18:12

Cristian Szpisjak


1 Answers

This is very annoying, but I guess the Manage Bower Packages context menu is now enabled only when you have the respective bower configuration file (bower.json) and right-clicking it.

Just create a new file bower.json and .bowerrc in the root directory project (nested solution) as respectively showed below:

{
  "name": "asp.net",
  "private": true,
  "dependencies": {
  }
}

{
  "directory": "wwwroot/lib"
}

A good hint to create any file is using Mads Kristensen's extension Add New File (SHIFT + F2) already embedded in Web Essentials Extension (recommended) also created by him.

So, right-click bower.json.

enter image description here

enter image description here

like image 80
Rodrigo Avatar answered Sep 18 '22 18:09

Rodrigo