【问题标题】:.net core project.json intellisense not working.net core project.json 智能感知不工作
【发布时间】: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


【解决方案1】:

我遇到了同样的问题。我像你这样的项目也不在驱动器 C 上。看来我的问题出在 ReSharper 上。我不知道您是否在使用 ReSharper,但在这里我是如何解决我的问题的。

当我将 ReSharper IntelliSense 从 Visual Studio 更改为 ReSharper 时,我的 IntelliSense 恢复了。

【讨论】:

  • 不,我目前没有使用 ReSharper。
  • 实际上对我来说,它只是从 ReSharper 切换到 Visual Studio 以获取 JSON 文件。 (2016.1.2 版)无需为所有内容禁用 ReSharper IntelliSense。
  • 是的,对我来说问题也出在 ReSharper 中
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-08-17
  • 2018-10-27
相关资源
最近更新 更多