Visual Studio 2015 Intellisense中没有Bower包

时间:2021-08-29 16:54:57

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. 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.json文件时,你应该能够在依赖项下删除一行,并且当你输入intellisense时,包列表应该开始过滤。然而,我无法看到列出的任何这些软件包,如果我手动输入显示唯一选项为'*'的软件包名称,它也无法找到任何版本。我已经确认已经为凉亭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

斯图尔特

3 个解决方案

#1


1  

Luckily at least both Bower and Node version IntelliSense started working for me after installing Node.js Tools for Visual Studio.

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

#2


0  

I also got only '*' as version suggestion for bower.json packages in VS2015 intellisense. (Node worked) In my case it helped to update the "Microsoft ASP.NET Web Frameworks and Tools" VS extension.

我在VS2015 intellisense中只获得了'*'作为bower.json包的版本建议。 (节点工作)在我的情况下,它有助于更​​新“Microsoft ASP.NET Web框架和工具”VS扩展。

#3


0  

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

#1


1  

Luckily at least both Bower and Node version IntelliSense started working for me after installing Node.js Tools for Visual Studio.

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

#2


0  

I also got only '*' as version suggestion for bower.json packages in VS2015 intellisense. (Node worked) In my case it helped to update the "Microsoft ASP.NET Web Frameworks and Tools" VS extension.

我在VS2015 intellisense中只获得了'*'作为bower.json包的版本建议。 (节点工作)在我的情况下,它有助于更​​新“Microsoft ASP.NET Web框架和工具”VS扩展。

#3


0  

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