I’ve tried for many hours to get Visual Studio Code to work with Unity 5.5. I’ve been told that this extension for C# does not work:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.omnisharp
I have uninstalled it. I have tried installing this extension:
It produces this error:
Starting OmniSharp server at 12/1/2016, 2:34:34 PM
Target: /Users/cuboy/Documents/work/arrow/03/game/game.sln
OmniSharp server started wth Mono
Path: /Users/cuboy/.vscode/extensions/ms-vscode.csharp-1.5.3/bin/run
PID: 2845
OmniSharp: -s /Users/cuboy/Documents/work/arrow/03/game/game.sln --hostPID 2828 --stdio DotNet:enablePackageRestore=false --encoding utf-8
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Startup","Message":"Omnisharp server running using Stdio at location '/Users/cuboy/Documents/work/arrow/03/game' on host 2828."},"Seq":1,"Type":"event"}
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in /Users/cuboy/Documents/work/arrow/03/game
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: False
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references
[INFORMATION:OmniSharp#MSBuild] Detecting projects in '/Users/cuboy/Documents/work/arrow/03/game/game.sln'.
[INFORMATION:OmniSharp#MSBuild] Loading project from '/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp.csproj'.
[WARNING:OmniSharp#ProjectFileInfo] Couldn't locate Mono, TargetFrameworkRootPath not specified
[INFORMATION:OmniSharp#ProjectFileInfo] Using tools version: 15.0
[ERROR:OmniSharp#ProjectFileInfo] The reference assemblies for framework ".NETFramework,Version=v2.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
[WARNING:OmniSharp#MSBuild] Failed to process project file '/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp.csproj'.
/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp.csproj
[INFORMATION:OmniSharp#MSBuild] Loading project from '/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp-Editor-firstpass.csproj'.
[WARNING:OmniSharp#ProjectFileInfo] Couldn't locate Mono, TargetFrameworkRootPath not specified
[INFORMATION:OmniSharp#ProjectFileInfo] Using tools version: 15.0
[ERROR:OmniSharp#ProjectFileInfo] The reference assemblies for framework ".NETFramework,Version=v2.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
[WARNING:OmniSharp#MSBuild] Failed to process project file '/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp-Editor-firstpass.csproj'.
/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp-Editor-firstpass.csproj
[INFORMATION:OmniSharp#MSBuild] Loading project from '/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp-Editor.csproj'.
[WARNING:OmniSharp#ProjectFileInfo] Couldn't locate Mono, TargetFrameworkRootPath not specified
[INFORMATION:OmniSharp#ProjectFileInfo] Using tools version: 15.0
[ERROR:OmniSharp#ProjectFileInfo] The reference assemblies for framework ".NETFramework,Version=v2.0" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
[WARNING:OmniSharp#MSBuild] Failed to process project file '/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp-Editor.csproj'.
/Users/cuboy/Documents/work/arrow/03/game/Assembly-CSharp-Editor.csproj
[INFORMATION:OmniSharp.Startup] Configuration finished.
I have already followed all of these instructions:
Still nothing works. I have tried to use Brew to reinstall Mono according to Microsoft’s instructions. Still nothing works.
I’ve spent hours and hours trying as many different combinations. I have tried with the Visual Studio plugin, and without. I have tried before 5.5 and after. Nothing works.
If you have any suggestions as to what I’m supposed to do to get Visual Studio Code to work, I’m all ears, I’m quite stumped as to what I’m supposed to do.