Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cleanly remove bower from an ASP.Net 5 project

I'm using the ASP.Net 5 RC, but I don't want to use bower, I want to use NPM to manage all of my dependencies.

I have removed bower.json, removed the bower install command from project.json and specifically removed each package using bower uninstall.

However, it stil shows up in the solution explorer:

Solution Explorer, with bower still present

Is there any way to properly remove it, or is this just the way ASP.Net 5 is supposed to be used?

Thanks

like image 949
JMK Avatar asked Dec 17 '15 19:12

JMK


People also ask

How do I uninstall Bower?

Uninstall packages If you use the bower. json file, remove the package from this file and launch bower install again. It will not remove it, you have to use the bower uninstall command.

What is Bower in Visual Studio?

Bower is a “package manager for the web.” Bower lets you install and restore client-side packages, including JavaScript and CSS libraries. For example, with Bower you can install CSS files, fonts, client frameworks, and JavaScript libraries from external sources.


1 Answers

Turns out, the key is to remove the DnxInvisibleContent tag inside ItemGroup in the xproj file.

My ItemGroup section now looks like this:

<ItemGroup>
    <DnxInvisibleContent Include=".bowerrc" />
    <DnxInvisibleContent Include="package.json" />
</ItemGroup>
like image 94
JMK Avatar answered Oct 14 '22 13:10

JMK