Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Visual Studio - Reload closes all tabs

Discussion in 'Editor & General Support' started by gareth_untether, Jun 2, 2022.

  1. gareth_untether

    gareth_untether

    Joined:
    Jan 5, 2018
    Posts:
    64
    If add a script in Unity, then switch to Visual Studio, Visual Studio requests that I reload.

    Reloading closes all tabs.

    How to resolve?
    2022-06-02 08_21_30-File Modification Detected.png
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,015
    Are you on the most recent version of Visual Studio? 2019 or 2022?
     
  3. gareth_untether

    gareth_untether

    Joined:
    Jan 5, 2018
    Posts:
    64
    Microsoft Visual Studio Community 2022 (64-bit) - Current
    Version 17.2.2
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,195
    Haven‘t been using VS for years but I do remember it having odd glitches. It may help to close VS, delete all .sln and .csproj files from the unity project root folder and then try again.
     
  5. gareth_untether

    gareth_untether

    Joined:
    Jan 5, 2018
    Posts:
    64
    Thanks, but didn't help!

    What do you recommend using instead?
     
  6. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,195
    I use Rider. Not free but if you consider paying it‘s definitely the better choice over VS for Unity dev thanks to native support and the built-in decompiler.
     
  7. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,015
    Update to the mostly recently released version. I believe these issues have been fixed.
     
    Jinjer88 and gareth_untether like this.
  8. gareth_untether

    gareth_untether

    Joined:
    Jan 5, 2018
    Posts:
    64
    @SteffenItterheim: Cool to see Copilot is available for Rider. I'll consider it if VS keeps bugging out!

    @spiney199: Thanks. Just updated and appears to have fixed it.
     
  9. Jinjer88

    Jinjer88

    Joined:
    May 17, 2017
    Posts:
    11
    Had the same issue with visual studio 2022 version 17.2.2
    Can confirm that updating to 17.2.3 will fix it
     
  10. jolix

    jolix

    Joined:
    May 22, 2016
    Posts:
    70
    Still there in 17.3.4.
    Reloading causes some tabs to close and sometimes tabs get duplicated.
     
    Genghis42 likes this.