来自Visual Studio 2015的Knockout 3.4.0的Bower安装中的Miss/dist文件夹

Gar*_*eth 6 bower knockout-3.0 visual-studio-2015

我目前正在使用Visual Studio 2015来处理一个使用NPM/Bower管理Javascript包依赖项的项目.我们正在使用并通过Bower安装的其中一个软件包是knockout-3.4.0.

如果我转到wwwroot/lib/knockout并删除该文件夹,VS Solution Explorer会注意到依赖项节点下不再安装软件包 - 如果我从此菜单运行Restore Packages,它会尝试将knockout拉回lib目录.

但是,每次执行此操作时都无法下载/ dist目录及其中的文件.如果我在我身后的同事机器上做同样的事情(非常相似的构建环境),VS 2015将恢复包括/dist文件夹的包.

我究竟做错了什么?我尝试清理bower缓存并重新安装,但遇到了同样的问题.没有/ dist的内容,应用程序不起作用.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\Web\External\Bower.cmd" install --force-latest
bower knockout#>=2.2        not-cached https://github.com/SteveSanderson/knockout.git#>=2.2
bower knockout#>=2.2           resolve https://github.com/SteveSanderson/knockout.git#>=2.2
bower knockout#>=2.2          checkout v3.4.0
bower knockout#>=2.2          resolved https://github.com/SteveSanderson/knockout.git#3.4.0
bower knockout#>=2.2           install knockout#3.4.0
Run Code Online (Sandbox Code Playgroud)

Gar*_*eth 0

这个问题似乎是由于让我们的应用程序在 Bower 脚本中查看 knockoutjs 而不是 knockout 造成的