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

My script isn't open in Visual Studio 2019

Discussion in 'Scripting' started by aspy523, May 28, 2019.

  1. aspy523

    aspy523

    Joined:
    May 25, 2019
    Posts:
    7
    So when I double click on a script in Unity 2019.3.0 to open it up on visual studio 2019 it opens up visual studio and is supposed to open the script on it, but it doesn't. I've checked that vs is set up for unity and c# and vs says the name of my project in unity in the top right hand corner.
    Any help would be greatly appreciated. Thank you.
     
    quietNix likes this.
  2. Vectorbox

    Vectorbox

    Joined:
    Jan 27, 2014
    Posts:
    232
    I've seen this happen with VS2017, it can be resolved by opening the 'Solution Explorer' from the 'View' menu and selecting the file name.

    I haven't tried this with VS2019 but it's worth a try.
     
  3. John_MSFT

    John_MSFT

    Microsoft Employee

    Joined:
    Feb 21, 2018
    Posts:
    118
    @aspy523 Is the com.unity.ide.visualstudio package up to date? You can check via the Package Manager UI.
     
  4. aspy523

    aspy523

    Joined:
    May 25, 2019
    Posts:
    7
    I believe this is up to date
     
  5. aspy523

    aspy523

    Joined:
    May 25, 2019
    Posts:
    7
    This did it. Thank you!
     
    Vectorbox likes this.