Search Unity

Problem with Unity 5.5, Visual Studio Code integration, OSX 10.12.1

Discussion in 'Code Editors & IDEs' started by almo, Dec 2, 2016.

  1. almo

    almo

    Joined:
    Jul 14, 2010
    Posts:
    83
    I get this with the listed software. It doesn't recognize object types and I can't use reference-finding. I have the Omnisharp plugin installed and updated. Just wondering if this is supposed to work properly yet. I'm opening it with Assets->Open Project In Code.

    Screen Shot 2016-12-02 at 12.15.48 PM.png
     
    Last edited: Dec 2, 2016
  2. almo

    almo

    Joined:
    Jul 14, 2010
    Posts:
    83
    In the .csproj file, there's this:

    <Reference Include="UnityEngine">
    <HintPath>/Applications/Unity 5.5.0f3/Unity.app/Contents/Managed/UnityEngine.dll</HintPath>
    </Reference>

    Note the space in the file path. Changing Unity's location to

    /Applications/Unity5.5.0f3

    then deleting the generated .sln and .csproj files fixed it.