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. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Bug Wrong Visual Studio being opened when double clicking script or console.

Discussion in '2020.1 Beta' started by Chris-Trueman, May 28, 2020.

  1. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,233
    I have both 2017 and 2019 versions of Visual Studio installed. I have Unity set to open 2019, but every time I try to double click a log message or a script file, it opens Visual Studio 2017 instead.

    When I start the project, I use Asset->Open C# Project and it opens up VS 2019. Everything else that should switch or open up to VS 2019 opens 2017 instead. Quite an irritating bug.

    I also have 2 different options for VS 2019 and both do the same thing.

    VisualStudioTroubles.png
     
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,050
    Sounds related to the issues discussed in this thread: https://forum.unity.com/threads/editor-opening-random-versions-of-vs.868288/

    Does the workaround solve the issue for you?
     
  3. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,233
    This is part of what I do when I start Unity. I use that menu to open visual studio. It opens the correct one, but still opens the wrong one when I double click an item in the console. It almost always causes 2019 to ask me to reload the solution because it was modified outside of the environment. It also works correctly every now and then.
     
  4. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,050
    If you're not already on it, could you please try upgrading the Visual Studio Editor package to 2.0.2?
     
    Chris-Trueman likes this.
  5. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,233
    This fixed it. Thank you!
     
    John_MSFT and LeonhardP like this.