Microsoft® Visual Studio® Editor Platform
See the version list below for details.
Occurred: After Finished Create New Project. Visual Studio 2019 16.9.4 Tried: 1. Use Repair in Visual Studio Installer. Re Installed Visual Studio. I have noticed a weird issue with Visual Studio 2019 v16.0.1 the IntelliSense about 'Using directive is unnecessary' normally grey is missing and type reference suggestion for missing using is not working. I also tried with Visual Studio 2019 Preview but no luck. I have tried the following: deleted.vs folder and restarted. Reinstalled Visual.
- Intellisense activation. Fix tab issue when auto formatting after unreal macros. Speeding up Intellisense on VS2015. Intellisense false errors. Intellisense not working on my project files. How to fix IntelliSense warnings Visual studio 2019. Intellisense can't find includes for UE4 project. Pointer To Incomplete Class Type from Subclass.
- IntelliSense is a name given to a set of features that make coding more convenient. IntelliSense for C is available for stand-alone files as well as for files that are part of a C project.
Dependencies
.NETFramework 4.7.2
- Microsoft.VisualStudio.CoreUtility(>= 16.9.227)
- Microsoft.VisualStudio.Imaging.Interop.14.0.DesignTime(>= 16.9.30921.310)
- Microsoft.VisualStudio.Language(>= 16.9.227)
- Microsoft.VisualStudio.Text.Data(>= 16.9.227)
- Microsoft.VisualStudio.Text.Logic(>= 16.9.227)
- Microsoft.VisualStudio.Text.UI(>= 16.9.227)
- System.Runtime.CompilerServices.Unsafe(>= 4.7.1)
Used By
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Microsoft.VisualStudio.Language.Intellisense:
Package | Downloads |
---|---|
Microsoft.VisualStudio.InteractiveWindow | |
Microsoft.VisualStudio.SDK Visual Studio SDK meta-package. Reference this to get references to most other Visual Studio extensibility packages. | |
Madskristensen.VisualStudio.SDK Meta package containing all Visual Studio SDK Reference Assemblies | |
VSSDK_Reference_Assemblies Meta package containing all VSSDK Reference Assemblies | |
VisualStudio.Extensibility.Editor |
GitHub repositories (18)
Showing the top 5 popular GitHub repositories that depend on Microsoft.VisualStudio.Language.Intellisense:
Repository | Stars |
---|---|
dnSpy/dnSpy .NET debugger and assembly editor | |
dotnet/roslyn The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs. | |
HJLebbink/asm-dude Visual Studio extension for assembly syntax highlighting and code completion in assembly files and the disassembly window | |
mono/monodevelop | |
github/VisualStudio GitHub Extension for Visual Studio |
Version History
Version | Downloads | Last updated |
---|---|---|
17.0.30-g62d2639511 | 77 | 4/19/2021 |
16.9.227 | 1,343 | 3/3/2021 |
16.8.239 | 1,203 | 11/18/2020 |
16.6.255 | 19,988 | 6/9/2020 |
16.4.280 | 30,829 | 12/18/2019 |
16.2.45 | 1,472 | 9/6/2019 |
16.1.89 | 61,865 | 5/25/2019 |
16.0.467 | 216,691 | 3/7/2019 |
16.0.428 | 4,455 | 2/7/2019 |
16.0.342-g758a0a97e0 | 468 | 1/7/2019 |
16.0.189-g83e7c53a57 | 13,293 | 11/22/2018 |
15.8.525 | 85,062 | 8/22/2018 |
15.6.27740 | 16,105 | 3/10/2018 |
15.6.27413 | 2,106 | 2/15/2018 |
15.5.27130 | 30,239 | 1/17/2018 |
15.4.27004 | 3,257 | 10/14/2017 |
15.0.26606 | 187,319 | 6/14/2017 |
15.0.26228 | 8,291 | 7/5/2018 |
15.0.26201 | 110,706 | 2/2/2017 |
15.0.26105-RC3 | 20,376 | 1/6/2017 |
15.0.25824-RC | 5,305 | 10/26/2016 |
15.0.25726-Preview5 | 16,091 | 9/27/2016 |
15.0.25604-Preview4 | 17,552 | 8/8/2016 |
15.0.25123-Dev15Preview | 21,369 | 3/24/2016 |
14.3.25407 | 124,268 | 6/24/2016 |
14.2.25123 | 21,427 | 3/31/2016 |
14.1.24720 | 5,252 | 12/1/2015 |
14.0.23205 | 10,700 | 8/6/2015 |
14.0.22823-RC | 1,190 | 4/29/2015 |
12.0.21005 | 1,401 | 1/12/2016 |
I had a set of very strange problems after upgrading to Visual Studio 2019 early this week, and they were significantly hampering my ability to get work done.
- Go To Definition didn't work for a great many classes, methods, and properties.
- Intellisense was straight-up missing in multiple places.
I hadn't realized how much I relied on those two features of Visual Studio until I could no longer use them. It was like suddenly missing a finger, or being unable to find my phone: part of myself was gone.
I went off to Google the problem and found nothing that helped me. So, when I eventually did find the solution that worked for me, it occurred to me that I cannot be the only one with this problem. Hence, this post.
Here's how I fixed my missing Intellisense and nonfunctional Go To Definition in Visual Studio 2019.
(If you're just looking for the solution, jump to the Summary section at the bottom)
Tracking the Problem
Our project is an ASP.NET Framework 4.5.2 MVC solution, with lots of other tech thrown in (e.g. Entity Framework). As I mentioned at the time, the Intellisense and definitions were not missing for all of my classes, methods, etc., just for a majority of them. For example, in my controllers I could not use Go To Definition on the ASP.NET MVC Controller class, nor the attribute HttpGet, nor any of our custom classes for this project. But I could use it on certain common extensions, such as ToString or ToList.
It took me a while to work this out, but I eventually determined that what I was actually missing was all of ASP.NET MVC and Entity Framework. With that commonality in mind, I started poking around the solution, which is when I discovered this:
All of my project references were in error! Even ones that should exist on my system, like System.Data.
Which is stupid. I can use this project perfectly fine in VS 2017, so why was VS 2019 giving me such problems? And, more importantly, what was I going to do about it?
Potential Solution #1: Delete the .vs File
A bit of googling lead me to this blog post by Rick Strahl which suggested that I should delete the hidden .vs folder at the root of my solution. When I did so and opened Visual Studio again, VS recreated this folder. But, unfortunately, it didn't fix the issues I was having with Intellisense and Go To Definition.
It was at this point that something occurred to me: all of the things which I could not get Intellisense for (MVC and EF) were, in fact, NuGet packages. I wondered if this had something to do with NuGet, and, it turns out, it does!
Potential Solution #2: Restore NuGet Packages
There's a right-click option on .sln files called 'Restore NuGet Packages'. This was the first thing I attempted to do while trying to fix this problem. Unfortunately, it didn't help, because all I got was this:
'All packages are already installed and there is nothing to restore.' Which is not helpful in the least.
Potential Solution #3: Use the NuGet UI
The next thing I could think to do was use the NuGet UI within Visual Studio to reinstall all the packages. Problem is, there is approximately (counts on fingers) 57 jillion packages on this solution. Refreshing them using the UI would take a lot of time.
Clearly I was not going to do this. I needed something a bit more... forceful. Which is when I stumbled upon the actual, final solution that restored Intellisense and fixed Go To Definition...
Actual Solution: Delete Local NuGet Packages
...I deleted my local copy of this solution's NuGet packages.
At the root of our solution there is a packages folder. I deleted the entire contents of this folder. Upon reopening Visual Studio, Intellisense and Go To Definition were restored to full working order.
If I'm being completely honest, I do not know exactly why this works. After all, Visual Studio showed errors on references which should exist on my local machine, not in NuGet packages. But at this point, I don't particularly care why it works, I'm just glad it does.
Summary
It turned out the issue was related to NuGet; what I needed to do was delete the contents of the packages folder. For completeness's sake, here's the steps to do what I did.
- Close all instances of Visual Studio 2019.
- Delete the contents of the packages folder at the root of your solution on your local machine.
- Open Visual Studio 2019 again.
This final solution worked for me. I am including the potential solutions in this post in the hopes that one of them (actual or potential) works for you, dear reader. Let me know if you have any other solutions in the comments!
Happy Coding!
Visual Studio 2019 Intellisense Not Working Unity
Hello Dear Reader! Want to get the best C#, ASP.NET, web tech, tips, and stories anywhere on the Web?Sign up to receive my premium newsletter The Catch Block!Each Wednesday, you'll get the best reads, job listings, stories, tips, and news from around the ASP.NET and C# worlds.All for only $5/month or $50/year!Become a subscriber today!