Visual Studio 2017 IntelliSense not working correctly

Viewed 2777

I have Visual Studio 2017 Professional on a Windows 10 Pro machine and i have noticed an issue whenever i add a reference to an assembly( or add a nuget package )

For example in my sample app i have added the following to the csproj file:

<PackageReference Include="Microsoft.Extensions.Logging" Version="1.1.2" /> <PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.1.2" /> <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.2" />

So when i attempt to write code that utilizes package or reference I've added it Visual Studio doesn't seem recognize it. Even i try to automatically resolve the error by using the command "Alt+Enter or Ctrl+" it doesn't show the correct reference to use in the list.

See below:enter image description hereenter image description here

I have tried cleaning out the cache and also updated Visual Studio 2017 with the latest patch available.

If i close and open Visual Studio again the issue disappears but its not the ideal solution.

Does anyone have ideas on how i could resolve this issue please?

1 Answers
Related