简体   繁体   中英

bower.json doesn't show in Visual Studio 2015 solution explorer

I read everywhere that VS2015 shows all files in the directory. However, I don't see bower.json unless I click "show all files" icon. Since there is no option "include in/exclude from project" as there was before, I don't understand how this is controlled. Other service files ( package.json , project.json , etc. ) do show up, but not bower.json .

How do I include bower.json in solution explorer?

Right Click on the bower.json file then show this in Solution Explorer. That's it

在此输入图像描述

按钮单击

First click the 3rd button from left at the top of solution explorer menu to show all files. Then right click on the bower.json file and select "Show in Solution Explorer". (If you prefer, do the same with .bowerrc) Finally click the 3rd button from left at the top of solution explorer menu again to hide all files while bower.json keeps visible.

Try 'bower init' under your project folder. You might need to install node.js/npm and bower first.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM