【发布时间】:2017-01-31 19:12:14
【问题描述】:
刚刚在我的机器上安装了 VS2015 和 .net 核心,但由于某种原因,我在 project.json 中没有智能感知。在我的另一台机器上它工作正常。知道这里出了什么问题吗?
已安装所有扩展:
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Professional
LightSwitch for Visual Studio 2015
Microsoft LightSwitch for Visual Studio 2015
Visual Basic 2015
Microsoft Visual Basic 2015
Visual C# 2015
Microsoft Visual C# 2015
Visual C++ 2015
Microsoft Visual C++ 2015
Add New File 3.5
The fastest and easiest way to add new files to any project - including files that start with a dot
ASP.NET and Web Tools 2015.1 14.1.20907.0
ASP.NET and Web Tools 2015.1
ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Azure App Service Tools v2.8.1 14.0.11123.0
Azure App Service Tools v2.8.1
Bundler & Minifier 2.1.279
Adds support for bundling and minifying JavaScript, CSS and HTML files in any project.
Common Azure Tools 1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
File Icons 1.6
Adds icons for files that are not recognized by Solution Explorer
File Nesting 2.5.63
Automatically nest files based on file name and enables developers to nest and unnest any file manually
Image Optimizer 3.6.94
Uses industry standard tools to optimize any JPEG, PNG and Gifs - including animated Gifs. Can do both lossy and lossless optimization.
Image Sprites 1.4.45
Boost your website's performance by creating image sprites to reduce the amount of HTTP requests needed.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
Markdown Editor 1.8.166
A full featured Markdown editor with live preview and syntax highligting. Supports GitHub flavored Markdown.
Microsoft .NET Core Tools (Preview 2) 14.1.20907.0
Microsoft .NET Core Tools (Preview 2)
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.5.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
Open Command Line 2.1.176
Opens a command line at the root of the project. Support for all consoles such as CMD, PowerShell, Bash etc. Provides syntax highlighting, Intellisense and execution of .cmd and .bat files.
Package Installer 1.8.87
Makes it easier, faster and more convenient than ever to install Bower, npm, JSPM, TSD, Typings and NuGet packages to any project
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
Python Tools for Visual Studio 2.2.40623.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.
Python Tools for Visual Studio - Django Integration 2.2.40623.00
Provides templates and integration for the Django web framework.
Python Tools for Visual Studio - Profiling Support 2.2.40623.00
Profiling support for Python projects.
SQL Server Data Tools 14.0.60519.0
Microsoft SQL Server Data Tools
TypeScript 1.8.36.0
TypeScript tools for Visual Studio
Web Accessibility Checker 1.3.33
The easiest way to perform accessibility checks on any ASP.NET web application. Fully customizable and support all the major international accessibility standards.
Web Compiler 1.11.319
Compiler for LESS, Sass and CoffeeScript files
Web Essentials 2015.3 3.0.235
Adds many useful features to Visual Studio for web developers. Requires Visual Studio 2015
更新:如果我在驱动器 C 上创建项目,显然 intellisense 可以工作。但是,当项目在不同的逻辑磁盘上创建时,它就无法工作。
【问题讨论】:
-
我确定你已经检查过了,但是当你按下
ctrl+space(而不是.)时它会弹出吗? -
谢谢。是的,我检查过了。没有。另外它应该会自动显示。
-
好的。只是检查一下显而易见的,因为我知道有一个 VS 选项可以在
.上不显示智能感知。您可以提供更多详细信息吗?仍然在黑暗中拍摄,但是您使用的机器以及它具有哪个服务包,安装了 .NET 版本,您在哪里获得了 VS2015 的副本,在安装此之前是否有任何其他版本的 VS,等等。您是否在两台机器上使用了相同的安装程序? -
如果我没记错的话,智能感知是由 NuGet 缓存驱动的,而不是由 Web 请求驱动的。 (我可能完全错了)。您可以通过在另一个项目中拉下包来确认。
-
你能发布你安装的扩展吗?
Help > About Microsoft Visual Studio > Copy Info.
标签: visual-studio-2015 asp.net-core package.json