【发布时间】:2016-11-20 04:56:36
【问题描述】:
不确定我是否可以做任何事情来在 VS2015 中为 .netcore 提供更好的工作流程,所以我想问一下。
在我的 .netcore 解决方案中添加新的 bower 包时,让我们以 Durandal 为例。
原始 bower.json:
{
"name": "asp.net",
"private": true,
"dependencies": {
"underscore": "~1.8.3",
"bootstrap": "~3.3.6",
"bootswatch": "3.3.6",
"jquery": "2.2.3",
"jquery-validation": "1.15.0",
"jquery-validation-unobtrusive": "~3.2.6",
"angular": "1.5.7",
"angular-route": "~1.5.7"
}
}
用 Durandal 更新:
{
"name": "asp.net",
"private": true,
"dependencies": {
"underscore": "~1.8.3",
"bootstrap": "~3.3.6",
"bootswatch": "3.3.6",
"jquery": "2.2.3",
"jquery-validation": "1.15.0",
"jquery-validation-unobtrusive": "~3.2.6",
"angular": "1.5.7",
"angular-route": "~1.5.7",
"durandal": "~2.1.0"
}
}
现在我的包安装正确,但在我的wwwroot/lib/... 中,我实际上看不到刚刚通过更改 bower.json 安装的包。如果我直接在资源管理器中进入目录,我可以看到安装了 durandal、require 和 knockout - 它们只是没有出现在我的解决方案中,并且我无法在我的解决方案中引用它们,直到我关闭并重新打开解决方案。
我相信在以前版本的框架中,解决方案顶部或右键单击文件夹等对象都有一个“刷新”按钮。这似乎不再是这种情况了。
我有什么遗漏吗?这是一个小小的不便,因为有一种解决方法,但如果有人对如何解决它有任何想法,我仍然不想这样做。
【问题讨论】:
标签: visual-studio-2015 asp.net-core bower