Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.net 5 MVC 6 bower.json and project.json disappear

Is there a reason why bower.json and project.json disappear from the Solution Explorer after closing an ASP.net 5 Web Project? You can click the "Show Hidden Files" icon to display them, but I want them to be part of the project. With the package Intellisense, the json files are much quicker than the clunky Bower tooling.

like image 553
Sam Avatar asked Dec 22 '15 22:12

Sam


1 Answers

To solve this you have to remove the DnxInvisibleContent tag inside ItemGroup in the xproj file.

From:

<ItemGroup>
    <DnxInvisibleContent Include="bower.json" />
    <DnxInvisibleContent Include="package.json" />
</ItemGroup>

To:

<ItemGroup>
</ItemGroup>

They should appear in your solution explorer and you'll be free to edit them as you wish.

Let me know if this doesn't help.

like image 55
jeanfrg Avatar answered Oct 21 '22 15:10

jeanfrg