Visual Studio 2015 RTM-bower_components放在哪里? [英] Visual Studio 2015 RTM - Where did bower_components go?

查看:94
本文介绍了Visual Studio 2015 RTM-bower_components放在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2015 RTM中,bower_components文件夹消失了,程序包直接保存到wwwroot / lib /文件夹中。默认的gulpfile不再具有将文件从bower_components复制到wwwroot的功能,这将证实这一点。

It looks like with Visual Studio 2015 RTM, the bower_components folder is gone and packages are saving directly to the wwwroot/lib/ folder. This would be verified by the fact that the default gulpfile no longer has a function for copying files from bower_components to wwwroot.

但是在默认的project.json中,即使该文件夹不再存在,bower_components仍位于排除属性中。

However in the default project.json, bower_components is still in the "exclude" property even though the folder no longer exists. Possibly an oversight?

有人知道这是怎么回事吗?在发行说明,错误修复和已知问题文章中我什么都没看到。另外,我认为wwwroot文件夹的全部目的是仅容纳实际站点需要的白名单文件。我想在这里提供库代码不会带来 伤害 ,实际上,当我们添加新库时,这使我们的生活更轻松,但是在整个测试期间,bower_components文件夹严格分开。

Does anyone know what is going on with this? I didn't see anything about it in the release notes or the bug fixes and known issues articles. Also, I thought the entire point of the wwwroot folder was to house only white-listed files which will be needed by the actual site. Which, I guess there is no harm in making library code available here, it actually makes our lives easier as we add new libraries, but throughout the beta period the bower_components folder was pretty strictly separated.

https: //www.visualstudio.com/zh-cn/news/vs2015-vs.aspx

https://support.microsoft.com/en-us/kb/3025135

推荐答案

我一直在尝试调整项目以匹配asp.net 5的最新VS项目模板中的更改。

I've been trying to adjust my project to match the changes in the latest VS project template for asp.net 5 as well.

据我所知,以前有一项任务是将bower_components文件夹中的内容复制到wwwroot / lib

From what I can tell, previously there was a task to copy stuff from the bower_components folder into wwwroot/lib

但是现在不需要了,因为它们将Bower文件直接放在wwwroot / lib中,就会发生这种情况,因为Web应用程序的根目录中有一个名为.bowerrc的新文件,其内容如下:

But now that is not needed because they put the bower files directly in wwwroot/lib and this happens because there is a new file in the root of the web app named .bowerrc which has the following content:

{
  "directory": "wwwroot/lib"
}

所以我认为不再需要bower_components文件夹
很多相关的更改在gruntfile.js中也是如此。

so I think bower_components folder is no longer needed lots of related changes in gruntfile.js as well.

这篇关于Visual Studio 2015 RTM-bower_components放在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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