问题
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:
Is there any way to properly remove it, or is this just the way ASP.Net 5 is supposed to be used?
Thanks
回答1:
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>
回答2:
Once you delete all the packages from bower and remove bower from project then you need to close and reopen vs so that the bower explorer can go away.
that's what worked for me...
来源:https://stackoverflow.com/questions/34342909/cleanly-remove-bower-from-an-asp-net-5-project