Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Xbox Live Unity plugin 'SyntaxTree' namespace Could not be found

Discussion in 'Windows' started by DessertSnack, Oct 26, 2021.

  1. DessertSnack

    DessertSnack

    Joined:
    Jun 12, 2019
    Posts:
    5
    I Have a Problem when Install the Xbox Live Unity plugin, there is error

    Assets\Xbox Live\Editor\XboxLivePostProcessing.cs(14,11): error CS0246: The type or namespace name 'SyntaxTree' could not be found (are you missing a using directive or an assembly reference?)

    and I try The Solution about Updating Vs and Re-applying it (I'm using JetBrains Rider 2020.1.3 x64 Switch with VS2019) and it didn't work at all, is there any another way to fix it?
     
  2. Micuda

    Micuda

    Joined:
    Nov 11, 2016
    Posts:
    12
    Hi, in order to solve this issue, you need to install Visual Studio 2015 Tools for Unity from here:
    https://marketplace.visualstudio.com/items?itemName=SebastienLebreton.VisualStudio2015ToolsforUnity

    After the download and installation of this package, run Unity, go to Assets->Import package->Custom package and choose .unitypackage from the folder where Tools for Unity has been installed (mine was C://Program Files (x86)/Microsoft Visual Tools For Unity/2015/Visual Studio 2015 Tools.unitypackage)

    This will add missing SyntaxTree libraries and enables VS Tools for Unity. I don't know why is this simple step unmentioned everywhere. I was thinking first that simple installation will be enough, but you need to import installed package manually to Unity.

    Hope this was helpful.
    Cheers!