visual-studio-2015bowerasp.net-core

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


Solution

  • 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>