从ASP.Net 5项目中完全删除凉亭 [英] Cleanly remove bower from an ASP.Net 5 project

查看:126
本文介绍了从ASP.Net 5项目中完全删除凉亭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ASP.Net 5 RC,但我不想使用Bower,我想使用NPM来管理我的所有依赖项.

我删除了 bower.json ,从 project.json 中删除了 bower install 命令,并专门使用 bower删除了每个软件包卸载.

但是,它仍然显示在解决方案资源管理器中:

是否有任何方法可以正确删除它,或者这仅仅是应该使用ASP.Net 5的方式?

谢谢

解决方案

结果是,关键是要删除xproj文件中 ItemGroup 中的 DnxInvisibleContent 标签./p>

我的 ItemGroup 部分现在如下所示:

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

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

解决方案

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>

这篇关于从ASP.Net 5项目中完全删除凉亭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆