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. Dismiss Notice

Cannot debug with Visual Studio 7.3 for Mac

Discussion in 'Code Editors & IDEs' started by rankornfeld, Dec 7, 2017.

  1. rankornfeld

    rankornfeld

    Joined:
    Sep 29, 2016
    Posts:
    57
    I am using VS 2017 for Mac as the scripts editor (mainly since MonoDevelop just wont work with latest MacOS).

    Was working fine until the latest 7.3 update of VS 2017.

    With this version, I cannot debug. VS 2017 tries to run the unit tests (which I do not have) and when I hit the play button to start a debug session it will immediately finish the session.
    I can't find a way to tell VS not to run the unit tests, and instead run the unity project, like on previous versions.

    Anyone have an idea how to manage that?
     
    hosseinazizi, AakashDP and lucky0wl like this.
  2. AakashDP

    AakashDP

    Joined:
    Nov 22, 2016
    Posts:
    21
    Last edited: Dec 8, 2017
    viesc123 and lucky0wl like this.
  3. DaiHuynh

    DaiHuynh

    Joined:
    Jul 31, 2015
    Posts:
    1
    Visual Studio for Mac 7.3 generates wrong Solution version so make sure you add solution file (.sln) and project file (.csproj) to version control (GIT). So you have to revert solution file everytime Unity update or import assets.

    Quick fix is replace this header in Solution file from

    Code (CSharp):
    1.  
    2. Microsoft Visual Studio Solution File, Format Version 11.00
    3. # Visual Studio 2010
    to

    Code (CSharp):
    1.  
    2. Microsoft Visual Studio Solution File, Format Version 12.00
    3. # Visual Studio for Mac
     
    lucky0wl likes this.
  4. rankornfeld

    rankornfeld

    Joined:
    Sep 29, 2016
    Posts:
    57
    Downgrading didn't help, but attaching to the Unity debugger works for now.

    Hopefully this thing will be sorted out in the future...
     
  5. viesc123

    viesc123

    Joined:
    Dec 17, 2016
    Posts:
    12
    Keep having the same problem with Visual Studio for Mac from time to time. Meanwhile though, Unity has a "Regenerate Project Files" button in the settings, next to where you can select Visual Studio as your IDE. That fixes the problem with the wrong default debugger for me!