question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unity3D - Intellisense won't work with API Compatibility Level set to .NET Standard 2.0

See original GitHub issue

Issue Description

I am using Unity3D 2019.3 to build a C# project. There is a settings for my project within this program with 2 possible values.

API compatibility Level:

  • .NET Standard 2.0
  • .NET 4.x

When editing the C# files, the only way I can get Intellisense to work, is if I set it to .NET 4.x I would need it to work too with version 2.0, since some packages in Unity have this as a requirement (like Unity.Entities)

Steps to Reproduce

In Unity, set Project settings -> Player -> API Compatibility Level to .NET Standard 2.0

Expected Behavior

Having Intellisense in VSCode

Actual Behavior

Not having Intellisense in VSCODE

Logs

OmniSharp log

Starting OmniSharp server at 3/27/2020, 12:07:36 AM
    Target: /home/dbugger/projects/unity/extinction/extinction.sln

OmniSharp server started with Mono 6.8.0.
    Path: /home/dbugger/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/OmniSharp.exe
    PID: 15836

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 19.10 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 2 MSBuild instance(s)
            1: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            2: StandAlone 16.4 - "/home/dbugger/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: Mono 16.4 - "/usr/lib/mono/msbuild/Current/bin"
            CscToolExe = csc.exe
            CscToolPath = /home/dbugger/.vscode/extensions/ms-dotnettools.csharp-1.21.15/.omnisharp/1.34.14/omnisharp/.msbuild/Current/Bin/Roslyn
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/home/dbugger/projects/unity/extinction'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        Detecting projects in '/home/dbugger/projects/unity/extinction/extinction.sln'.
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/dbugger/projects/unity/extinction/Assembly-CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/home/dbugger/projects/unity/extinction/Assembly-CSharp-Editor.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/home/dbugger/projects/unity/extinction'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Could not find any CSX files
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Runtime.csproj
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/home/dbugger/projects/unity/extinction' on host 15699.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'com.tamagames.navmesh-components.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.UI.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEngine.UI.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.TestRunner.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEngine.TestRunner.csproj' does not exist.
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Runtime.csproj'.
/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Runtime.csproj
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'com.tamagames.navmesh-components.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEditor.UI.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEngine.UI.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEditor.TestRunner.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEngine.TestRunner.csproj' does not exist.

[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Runtime.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/dbugger/projects/unity/extinction/Assembly-CSharp.csproj
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.TestRunner.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEngine.TestRunner.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipeline.Universal.ShaderLibrary.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Timeline.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Cinemachine.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.CacheServer.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Animation.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ScriptableBuildPipeline.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Universal.Shaders.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Burst.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.VSCode.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ProBuilder.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.Properties.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Jobs.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Jobs.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Burst.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Core.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Collections.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ProBuilder.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ProBuilder.AssetIdRemapUtility.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Core.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Scenes.Hybrid.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Scenes.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.TextMeshPro.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Mathematics.Extensions.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.IK.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.IK.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Universal.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Universal.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEngine.UI.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Searcher.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Mathematics.Extensions.Hybrid.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Timeline.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Rendering.Hybrid.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Animation.Triangle.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.CollabProxy.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Postprocessing.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Rendering.Hybrid.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.BuildUtils.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'com.tamagames.navmesh-components.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Rider.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.Hybrid.EndToEnd.Tests.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'com.tamagames.navmesh-components.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.Hybrid.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Mathematics.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.InternalAPIEngineBridge.001.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Properties.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Sprite.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Common.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Postprocessing.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Tilemap.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Transforms.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Animation.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Transforms.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'com.unity.cinemachine.editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ProBuilder.AddOns.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ScriptableBuildPipeline.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ShaderGraph.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Mathematics.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Core.ShaderLibrary.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.TextMeshPro.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Common.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Analytics.DataPrivacy.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.InternalAPIEditorBridge.001.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.UI.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Transforms.Hybrid.csproj' does not exist.
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/dbugger/projects/unity/extinction/Assembly-CSharp.csproj'.
/home/dbugger/projects/unity/extinction/Assembly-CSharp.csproj
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEditor.TestRunner.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEngine.TestRunner.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipeline.Universal.ShaderLibrary.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Timeline.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Cinemachine.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEditor.CacheServer.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.Animation.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.ScriptableBuildPipeline.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipelines.Universal.Shaders.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Burst.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.VSCode.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.ProBuilder.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Entities.Properties.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Jobs.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Jobs.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Entities.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Burst.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipelines.Core.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Collections.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.ProBuilder.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.ProBuilder.AssetIdRemapUtility.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipelines.Core.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Scenes.Hybrid.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Scenes.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.TextMeshPro.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Mathematics.Extensions.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.IK.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.IK.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipelines.Universal.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipelines.Universal.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEngine.UI.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Searcher.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Mathematics.Extensions.Hybrid.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Timeline.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Rendering.Hybrid.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.Animation.Triangle.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.CollabProxy.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Postprocessing.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Rendering.Hybrid.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Entities.BuildUtils.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'com.tamagames.navmesh-components.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Rider.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Entities.Hybrid.EndToEnd.Tests.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'com.tamagames.navmesh-components.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Entities.Hybrid.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Mathematics.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.InternalAPIEngineBridge.001.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Properties.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.Sprite.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.Common.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Postprocessing.Runtime.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.Tilemap.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Entities.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Transforms.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.Animation.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Transforms.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'com.unity.cinemachine.editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.ProBuilder.AddOns.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.ScriptableBuildPipeline.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.ShaderGraph.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Mathematics.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.RenderPipelines.Core.ShaderLibrary.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.TextMeshPro.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.2D.Common.Editor.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Analytics.DataPrivacy.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.InternalAPIEditorBridge.001.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEditor.UI.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'Unity.Transforms.Hybrid.csproj' does not exist.

[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/dbugger/projects/unity/extinction/Assembly-CSharp.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Editor.csproj
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.UI.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEngine.UI.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.TestRunner.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEngine.TestRunner.csproj' does not exist.
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Editor.csproj'.
/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Editor.csproj
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEditor.UI.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEngine.UI.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEditor.TestRunner.csproj' does not exist.
/usr/lib/mono/msbuild/Current/bin/Microsoft.Common.CurrentVersion.targets(1870,5): Error: The referenced project 'UnityEngine.TestRunner.csproj' does not exist.

[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/home/dbugger/projects/unity/extinction/Unity.com.tamagames.extinction.world-renderer.Editor.csproj'
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /home/dbugger/projects/unity/extinction/Assembly-CSharp-Editor.csproj
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.TestRunner.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEngine.TestRunner.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipeline.Universal.ShaderLibrary.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Timeline.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Cinemachine.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'UnityEditor.CacheServer.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.2D.Animation.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ScriptableBuildPipeline.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Universal.Shaders.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Burst.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.VSCode.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ProBuilder.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.Properties.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Jobs.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Jobs.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Entities.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Burst.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Core.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Collections.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ProBuilder.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.ProBuilder.AssetIdRemapUtility.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.RenderPipelines.Core.Runtime.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Scenes.Hybrid.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Scenes.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.TextMeshPro.Editor.csproj' does not exist.
[warn]: OmniSharp.MSBuild.ProjectLoader
        The referenced project 'Unity.Mathematics.Extensions.csproj' does not exist.

... The log is much longer, but I have decided to cut it here, since from here to the end, is always more of the same. `.csproj` doesnt exist, again, and again, and again...

Environment information

VSCode version: 1.43.1 C# Extension: 1.21.15

Mono Information OmniSharp using global mono :6.8.0
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.200 Commit: c5123d973b

Runtime Environment: OS Name: ubuntu OS Version: 19.10 OS Platform: Linux RID: ubuntu.19.10-x64 Base Path: /usr/share/dotnet/sdk/3.1.200/

Host (useful for support): Version: 3.1.2 Commit: 916b5cba26

.NET Core SDKs installed: 2.2.402 [/usr/share/dotnet/sdk] 3.1.200 [/usr/share/dotnet/sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.2 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
csharp ms-dotnettools 1.21.15
prettier-vscode esbenp 3.20.0
sftp liximomo 1.12.9
theme-dracula dracula-theme 2.21.0
unity-debug Unity 2.7.5
vscode-wakatime WakaTime 4.0.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
enriquemorenotentcommented, Mar 28, 2020

@SirIntruder You were right. Changing to v1.2 of the Visual Studio Code package fixed this. I guess it was really not a problem with the plugin, but with the Unity package.

Thanks all for your help!

1reaction
enriquemorenotentcommented, Mar 27, 2020

Wait! I spoke too soon!

Intellisense works now, both for 2.0 and 4.x, but only on the default Unity Libraries.

If I go to the package manager, and I try to install something like “Entities”, I will not get Intellisense on that one.

Example: I should be able to see the type Unity.Entities.EntittyManager https://docs.unity3d.com/Packages/com.unity.entities@0.8/api/Unity.Entities.EntityManager.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Unity Api Compability Level is .NET Standard 2 but Visual ...
1 Answer 1 · In the Unity editor, click the menu Edit -> Project Setting -> Player. · Select the corresponding .NET version...
Read more >
Entities and Api compatibility level .Net Standard 2.0. errors in ...
After switching to api compatibility level .Net Standard 2.0 (from 4.X) I got a lot of errors in console pointing to
Read more >
[Solved]-VS Code IntelliSense not working for Unity3d-unity3d ...
Go to Edit > Project Settings > Player , scroll down to Configuration and change your API compatibility level to .NET 4.x ....
Read more >
NET profile support - Unity - Manual
By default, the Api compatibility Level is set to .NET Standard. To change the .NET profile, go to Edit > Project Settings >...
Read more >
API Compatibility Level not letting me choose higher .NET ...
Somewhere I read that I could try increasing the API Compatibility Level to a newer version, but only ".NET Framework" and ".NET Standard...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found