Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Have to uninstall/reinstall Visual Studio package to keep Intellisense working

Discussion in 'Editor & General Support' started by Saturn1004, Mar 10, 2021.

  1. Saturn1004

    Saturn1004

    Joined:
    Nov 14, 2014
    Posts:
    42
    For the longest time now I'll be using Visual Studio to edit scripts and there are zero issues, then randomly for no reason Visual Studio will start underlining everything that references the Mirror networking plugin in red and saying "namespace Mirror not found".

    Also when everything is underlined in red in Visual Studio the Unity project still works fine with no errors when I hit play obviously.

    It's like intellisense stops being able to locate the entire Mirror namespace for no reason.
    I've had it do it with the Google Admob plugin too if I recall correctly.

    The only fix I've found is to uninstall and reinstall the Package "Visual Studio Editor" from the Package Manager.
    Then open Visual Studio and everything will work fine again for another hour or so, until it randomly breaks again and I have to repeat the process if I don't want my entirely project underlined in red.

    Has anyone else had a similar issue?
    Anyone know of a possible solution?

    Edit: here's a screenshot.
     
    Last edited: Mar 11, 2021
    NoahKeijzer likes this.