gpt4 book ai didi

visual-studio-2015 - 添加的新 Bower 包在关闭/打开之前不会显示在解决方案中

转载 作者:行者123 更新时间:2023-12-02 04:39:57 24 4
gpt4 key购买 nike

不确定我是否可以做些什么来让 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 - 它们只是没有出现在我的解决方案中,并且在我关闭并重新打开解决方案之前我无法在我的解决方案中引用它们。

我相信在以前版本的框架中,解决方案顶部或右键单击文件夹等对象时有一个“刷新”按钮。这似乎不再是这种情况。

enter image description here

有什么我想念的吗?由于有解决方法,因此会带来一些不便,但如果有人知道如何修复它,我仍然不想这样做。

最佳答案

当您添加新的 Bower 依赖项时,VS 会自动要求 Bower 获取它。 Bower 需要一些时间来完成操作。例如,要获取 Ember.js,我需要等待大约 4 分钟,直到 Bower 完成。

但是,如果出于某种原因,您没有在 wwwroot\lib 文件夹中看到该包,您可以重新加载这些包。试试这个:

enter image description here

关于visual-studio-2015 - 添加的新 Bower 包在关闭/打开之前不会显示在解决方案中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38422233/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com