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

Unity 2019 keep opening empty visual studio 2019

Discussion in 'Editor & General Support' started by CrymX, Jul 26, 2019.

  1. CrymX

    CrymX

    Joined:
    Feb 16, 2015
    Posts:
    179
    This thing is making me crazy. Everything was working fine yesterday. Today every time i try to open a c# script in unity, a new instance of visual studio is opening with nothing.

    If I open the solution manually, the project is well loaded in visual studio, but if i try to open a file with Unity, again a empty visual studio is opened.

    I have reinstalled Unity 2019 / visual studio 2019 / visual studio tools

    Nothing works.

    Someone could help me ?
     
  2. Vectorbox

    Vectorbox

    Joined:
    Jan 27, 2014
    Posts:
    232
    This may not be the same issue, but I have experienced a situation where the script is available in Visual Studio but not displayed in the edit pane.

    Give this a try:
    • Open a script
    • When Visual Studio appears select 'View Menu / Solution Explorer'
    • Select the script name in the 'Solution Explorer / Assets / Scripts' folder
    Let us know if this helps
     
    Last edited: Jul 26, 2019
  3. CrymX

    CrymX

    Joined:
    Feb 16, 2015
    Posts:
    179
    Hey @Vectorbox thanks for helping.

    The solution explorer is empty too :(
     
  4. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,754
    I have experienced similar few times. But usually after VS is started with empty tab, I click again on script in Unity and it opens.
     
  5. Deleted User

    Deleted User

    Guest

    Which one? My bet would go for 2019.2 or 2019.3.

    These two versions are in beta and alpha states; you need to use 2019.1 or ealier versions so that Visual Studio works well. Click on the Unity Hub gree button to install the editor of your choice.
     
    Antypodish likes this.
  6. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,754
    For others information, I run 2019.2.0b10. 2018.3 in contrast, worked fine.
    I haven't tried 2019.1, so not sure if there would be different to me, in comparison to 2019.2
    I suspect as well that
     
  7. Deleted User

    Deleted User

    Guest

    It's a beta version; if the op needs a stable version, it should be 2019.1, or previous versions. ;)
     
  8. CrymX

    CrymX

    Joined:
    Feb 16, 2015
    Posts:
    179
  9. Raveler

    Raveler

    Joined:
    Sep 24, 2012
    Posts:
    40
    I have the same problem with 2019.1.9f1. One day it worked and then a few days ago suddenly Visual Studio opened an empty project instead. Can't get it fixed either.
     
  10. Deleted User

    Deleted User

    Guest

    1. make a backup of your project,
    2. remove all files related to visual studio (.csproj, .sln),
    3. make sure Visual Studio is not broken and up to date,
    4. start your project.