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

External Tools for Visual Studio For Mac to open Unity solution

Discussion in 'Code Editors & IDEs' started by BabyRan, Nov 28, 2016.

  1. BabyRan

    BabyRan

    Joined:
    Nov 28, 2016
    Posts:
    2
    Visual Studio For Mac Preview is out there
    check this out :
    https://www.visualstudio.com/vs/visual-studio-mac/

    I have already tried to use this Preview as Unity's External Script Editor, but I failed to open the C# solution by double clicking any source code in Unity. Actually, VS For Mac only loads the source file, instead of the whole solution.

    I wrote this tool to help VS For Mac open the solution file in Unity today, and it worked for me.

    You should test this tool first and back your working project up before you use it.

    you can download from GitHub link below and build it for your self
    https://github.com/windr00/UnityForMacSolutionLauncher
    You may take a look at the ReadMe for reference.

    Or you can download the attached file to use it directly (check ReadMe in Github link for usage)

    If you encountered any bug, please inform me.
    Thanks!

    Enjoy!
     

    Attached Files:

    foxcake, SomeAlexander and Tiny-Tree like this.
  2. tylero056

    tylero056

    Joined:
    Dec 24, 2014
    Posts:
    1
    Thanks for this!
     
  3. kB11

    kB11

    Joined:
    Jan 24, 2016
    Posts:
    89
    Using the newest Unity 5.6 patch and the release version of VS for Mac, it now works out of the box!
     
  4. sloankelly

    sloankelly

    Joined:
    Jul 6, 2012
    Posts:
    9
    I have 5.6.1p1 on Mac and it doesn't appear in the drop down list as an option in editor prefs. What have I done wrong? I have Visual Studio for Mac Community Edition installed.
     
  5. kB11

    kB11

    Joined:
    Jan 24, 2016
    Posts:
    89
    Click on "Browse..." and select the Visual Studio.app in your Applications folder.
     
  6. sloankelly

    sloankelly

    Joined:
    Jul 6, 2012
    Posts:
    9
    I did that, but I don't get any Intellisense (or whatever the Mac version calls is). I thought it auto populated the drop down list, and that meant everything works?
     
  7. kB11

    kB11

    Joined:
    Jan 24, 2016
    Posts:
    89
    It didn't auto populate the dropdown menu for me, but after adding it manually, Intellisense, debugging, etc. works.
    Either by double clicking on a script file or by right clicking and clicking "Open C# Project".

    I´m on 5.6.1f1