vs 2017 intellisense not working C# and XAML

Viewed 12937

I have a Strange issue that I can't seem to fix, my Intellisense for XAML is no longer showing up and the code behind is only showing the premade Members. The Classes and Methods I have made are not showing up. Also Visual Studios is not recognizing other pages and wont recognize Navigation either.

I have tried going to Tools>Text Editor>C#>Intellisense -Statement completion and checking the boxes Auto list members and Parameter information. I also tried to clear out the cache.

From what I have researched it seems nobody else is having the same problems.

9 Answers

For ReSharper users: I found that having ReSharper's IntelliSense enabled for all languages can break Intellisense unexpectedly (especially for XAML files). Here's how I was able to fix the same problem that the asker had in Visual Studio 2017 with ReSharper installed:

  1. In Visual Studio, go to the ReSharper menu and click on Options.
  2. On the left side go to Environment > IntelliSense > General.
  3. Select the Custom IntelliSense radio button.
  4. Change any languages that have broken IntelliSense to Visual Studio (like XAML).
  5. Click the Save button.

I solve that by changing the default editor in visual studio :

  1. In Visual : File > Open
  2. In the open file box : Select a .xaml file (don't open it)
  3. Select "Open with" in the button arrow
  4. Select "Source Code (Text) Editor and Set as Default
  5. Click OK

Please add the following Nuget Package from Nuget Console.

Install-Package MobileEssentials.FormsIntellisense -Version 0.1.1-pre

enter image description here

You can download the latest update from the following link.

https://www.nuget.org/packages/MobileEssentials.FormsIntellisense/0.1.1-pre

After installing the package please restart the project and wait for sometime and check it.

Just delete .vs directory. this directory is hidden. so

Just Exclude and Include Xaml Pages worked for me too. The difference in .csproj file was: MSBuild:Compile now: XamlIntelliSenseFileGenerator

I could fix the issue in VS2019 by launching the VS installer to modify it, un-check and check the workload ‘.NET desktop development’ to re-install it.

Related