Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Resolved 1249294 Visual Studio Windows upgrade to 16.6 breaks Unity project

Discussion in '2020.1 Beta' started by KwahuNashoba, May 21, 2020.

  1. KwahuNashoba

    KwahuNashoba

    Joined:
    Mar 30, 2015
    Posts:
    110
    Bug case 1249294

    I've just updated VS to 16.6 with a hope of fixing ECS Intellisense malfunctioning issue, but it turned out to break Unity project like so:

    upload_2020-5-21_11-59-12.png

    This happens with both Unity 2020.1.0b5 and 0b9 versions of Unity. Anyone stumbled upon this issue?
     
    Last edited by a moderator: May 27, 2020
  2. BackgroundMover

    BackgroundMover

    Joined:
    May 9, 2015
    Posts:
    245
    I haven't had the "needs migration" message, but with newer versions of visual studio (and then vs code) it wouldn't be able to see things like the Unity namespace until I regenerated the project files
     
  3. KwahuNashoba

    KwahuNashoba

    Joined:
    Mar 30, 2015
    Posts:
    110
    That was one of the many things I've tried but with no luck
     
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,143
    Thanks for the bug report, QA will have a look.
     
    KwahuNashoba likes this.
  5. KwahuNashoba

    KwahuNashoba

    Joined:
    Mar 30, 2015
    Posts:
    110
    After couple of emails with support team, and their inability to reproduce this problem, I decided to completely uninstall Unity and VS 2019, delete all I could find related to Unity and Unity Hub on my machine, then open registry editor, and again remove everything related to Unity and Unity Hub...then install Unity b12 via Unity Hub and VS 16.6.2 via vs installer...but the problem was still there. Then I manually, once again, removed all .csproj and .sln files and forced recreation from External Tools. I was finally able to open a solution in VS.

    Note that both, VS and Unity were updated twice since I opened this bug, so it might be that it has been solved.

    Interesting fact, whatever I tryed, I could not make Unity Hub log me out on reinstall. And I tried all sorts of things and cleaned all the traces of it I could find. Whatever dark magic you are using, it's not fair.
     
  6. rsmeenk

    rsmeenk

    Joined:
    Oct 24, 2015
    Posts:
    23
    The "needs migration" and broken Intellisense in Visual Studio happened to me today.
    Tried to regenerate projects files as suggested in the forums, but that did not help
    (Unity > Edit > Preferences... > External Tools > Regenerate project files)
    I think I caused it by uninstalling and reinstalling the Visual Studio tools for Unity while trying to fix a different issue.
    (Visual Studio 2019 > Tools > Get Tool & Features > Individual Components > Visual Studio 2019 Tools for Unity)

    After reinstalling the extension it turned out to still be disabled :eek: so I had to enable it:
    Visual Studio 2019 > Extensions > Manage Extensions > Installed > Visual Studio 2019 Tools for Unity > Enable > Restart VS
     
    Botanika likes this.
  7. KwahuNashoba

    KwahuNashoba

    Joined:
    Mar 30, 2015
    Posts:
    110
    Crap...that was probably my problem also, but I did quite a workaround.
     
    rsmeenk likes this.