Search Unity

Downgrading Visual Studio for Mac from 2019 to 2017

Discussion in 'Editor & General Support' started by Majedev, Jan 25, 2020.

  1. Majedev

    Majedev

    Joined:
    Jun 25, 2017
    Posts:
    7
    I recently upgraded to Visual Studio for Mac 2019 via Unity Hub. At least to me, it seems like there is a significant amount of performance regressions when editing codes; the editor becomes unresponsive for 2 to 3 seconds every time I hit cmd+s to save files, and intellisense popup feels a lot more sluggish compared to the way it used to be with VS 2017.

    I wish to downgrade Visual Studio for Mac to 2017, so I deleted the existing Visual Studio for Mac 2019. Then I downloaded Visual Studio 2017 from the following location and dragged to /Applications: https://dl.xamarin.com/VsMac/VisualStudioForMac-7.7.4.1.dmg. Now when I try to open up my source codes, basically every line has a red underline and suggests errors such as:

    - The type or namespace name 'System' could not be found
    - Predefined type 'System.String' is not defined or imported

    I've tried:

    - Deleting .csproj and .sln projects in my unity project
    - Installing .Net Core SDK
    - Ensuring 'Visual Studio for Mac Tools for Unity' extension's enabled
    - Using the uninstall script to completely remove Visual Studio 2019 before attempting to install 2017
    https://docs.microsoft.com/en-us/vi...2019#visual-studio-for-mac-and-xamarin-script
    - Copying Visual Studio 2017 from another machine and implanting it to my machine

    None of this works. Any idea how to resolve this issue and make Visual Studio 2017 work with Unity again?
     
  2. Majedev

    Majedev

    Joined:
    Jun 25, 2017
    Posts:
    7
    Alternatively, if there is a way to use Unity Hub to install an older version of Visual Studio for Mac, please let me know. Thanks!
     
  3. Majedev

    Majedev

    Joined:
    Jun 25, 2017
    Posts:
    7
    Finally figured out how to downgrade Visual Studio for Mac 2019 -> Visual Studio for Mac 2017.

    1) `sudo rm -rf /usr/local/share/dotnet /Library/Frameworks/Mono.framework /Applications/Visual\ Studio.app`
    2) Reinstall Visual Studio 2017 via https://visualstudio.microsoft.com/vs/older-downloads/ (I think you need to sign up for 'Visual Studio Dev Essentials' to be able to install the downloader)
     
  4. IcaroDLima

    IcaroDLima

    Joined:
    Aug 6, 2019
    Posts:
    25
    Same problem here. When i tried to install Unity 2018.4, Visual Studio 2019 is automatically installed. I already tried the above solutions.
     
  5. Majedev

    Majedev

    Joined:
    Jun 25, 2017
    Posts:
    7
    There is one more step to this.

    3) Remove Visual Studio 2017 that was installed via https://visualstudio.microsoft.com/vs/older-downloads, and then install the one from: https://dl.xamarin.com/VsMac/VisualStudioForMac-7.7.4.1.dmg

    It seems like Visual Studio 7.8.4 has the serious performance regression while 7.7.4.1 does not.