In Visual Studio 2015, when I create a brand new solution with a brand new ASP.NET 5 project, I see the Manage Bower Packages...
context menu when I right-click on the project:
However, when I add an ASP.NET 5 project to an existing solution, the Manage Bower Packages...
context menu is nowhere to be seen:
Any idea how to get the Manage Bower Packages...
context menu option to appear?
Adding a Bower configuration file to the project solves this problem. This can be done by right-clicking the project, selecting "Add new item"
from the menu and then "Bower configuration file"
from the item templates. Visual Studio restart may be required to get the menu item to show up.
I'm using Visual Studio 2017 Community version 15.7.0. I'm working on a .NET Core 2 project. I don't see the Bower Configuration file
item at all in the Add New Item
wizard suggested by @Samuli in his answer. Look at the the screenshot below:
Solution 1 - I went into the root directory of the project from windows explorer and created an empty bower.json
file myself. After doing this, I came back to Visual Studio and right clicked the project file in solution explorer and I was all set. Manage Bower Packages...
option was available now in the context menu.
Solution 2 - If you want a non-empty bower configuration file with default configuration then follow these steps :
bower init
on shell promptbower.json
created by answering few general answers on the shell prompt.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With