简体   繁体   English

Visual Studio 2015 Intellisense中没有Bower包

[英]Visual Studio 2015 No Bower Packages In Intellisense

I have just download the Visual Studio 2015 Community edition and started to learn ASP5. 我刚刚下载了Visual Studio 2015社区版并开始学习ASP5。

I have seen on many blog posts and videos, that when creating a new bower.json file you should be able to drop a line under the dependencies and a list of packages should start filtering as you type in the intellisense. 我在许多博客文章和视频中看到,在创建新的bower.json文件时,你应该能够在依赖项下删除一行,并且当你输入intellisense时,包列表应该开始过滤。 I am however unable to see any of these packages listed, its also unable to find any versions if I manually type in the package name showing the only option as '*'. 然而,我无法看到列出的任何这些软件包,如果我手动输入显示唯一选项为'*'的软件包名称,它也无法找到任何版本。 I have confirmed that the correct json schema has been selected for bower http://json.schemastore.org/bower . 我已经确认已经为bower http://json.schemastore.org/bower选择了正确的json架构。

I am running VS2015 on a windows 7 64bit machine and fully connected to the internet. 我在Windows 7 64位机器上运行VS2015并完全连接到互联网。

Looking forward to getting to the bottom of this issue. 期待着解决这个问题的根源。

Stuart 斯图尔特

幸运的是,在为Visual Studio安装Node.js工具之后,至少Bower和Node 版本 IntelliSense都开始为我工作。

I also got only '*' as version suggestion for bower.json packages in VS2015 intellisense. 我在VS2015 intellisense中只获得了'*'作为bower.json包的版本建议。 (Node worked) In my case it helped to update the "Microsoft ASP.NET Web Frameworks and Tools" VS extension. (节点工作)在我的情况下,它有助于更​​新“Microsoft ASP.NET Web框架和工具”VS扩展。

Just try it after installing the Corresponding Package from 从安装相应的包后,尝试一下

Tools -> NuGet Package Manager -> Package Manager Console -> PM> Install-Package bower.js 工具 - > NuGet包管理器 - > 包管理器控制台 - > PM> Install-Package bower.js

You can find more commands here .. https://docs.microsoft.com/en-us/nuget/tools/package-manager-console 你可以在这里找到更多命令.. https://docs.microsoft.com/en-us/nuget/tools/package-manager-console

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM