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.

v1.23.1 fails to load Unity project, worked with v1.23.0

See original GitHub issue

Issue Description

After upgrading to v1.23.1, I get “Some projects have trouble loading. Please review the output for more details.” and autocomplete etc. doesn’t work on my Unity 2019.4 project. Restarting vscode does not help.

Downgrading to v1.23.0 fixes it.

Platform: Ubuntu 18.04 with the latest Mono installed from their APT repo deb https://download.mono-project.com/repo/ubuntu stable-bionic main and with dotnet 3.1.401 installed from Microsoft’s APT repo.

Logs

OmniSharp log

Starting OmniSharp server at 8/20/2020, 10:06:01 AM Target: /path/to/project/projectname.sln

OmniSharp server started. Path: /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/run PID: 15283

    Starting OmniSharp on ubuntu 18.4 (x64)
    DotNetPath set to dotnet
    Located 1 MSBuild instance(s)
        1: StandAlone 16.8.0 - "/home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin"
    MSBUILD_EXE_PATH environment variable set to '/home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/MSBuild.exe'
    Registered MSBuild instance: StandAlone 16.8.0 - "/home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin"
        CscToolExe = csc.exe
        MSBuildToolsPath = /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin
        CscToolPath = /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Roslyn
        BypassFrameworkInstallChecks = true
        MSBuildExtensionsPath = /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild
    Detecting Cake files in '/path/to/project'.
    Could not find any Cake files
    Detecting projects in '/path/to/project/projectname.sln'.
    Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.Runtime.csproj'
    Queue project update for '/path/to/project/UnityEngine.UI.csproj'
    Queue project update for '/path/to/project/UnityEngine.TestRunner.csproj'
    Queue project update for '/path/to/project/Assembly-CSharp.csproj'
    Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.Tests.csproj'
    Queue project update for '/path/to/project/ThirdParty.csproj'
    Queue project update for '/path/to/project/ProjectNameProtoMain.csproj'
    Queue project update for '/path/to/project/GooglePlayGames.csproj'
    Queue project update for '/path/to/project/PxlAssembly.csproj'
    Queue project update for '/path/to/project/PixelIAP.csproj'
    Queue project update for '/path/to/project/Coffee.SoftMaskForUGUI.csproj'
    Queue project update for '/path/to/project/PxlPlayModeTestsAssembly.csproj'
    Queue project update for '/path/to/project/UnityEditor.TestRunner.csproj'
    Queue project update for '/path/to/project/Unity.2D.Sprite.Editor.csproj'
    Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.Editor.csproj'
    Queue project update for '/path/to/project/Coffee.SoftMaskForUGUI.Editor.csproj'
    Queue project update for '/path/to/project/UnityEditor.UI.csproj'
    Queue project update for '/path/to/project/Unity.2D.Tilemap.Editor.csproj'
    Queue project update for '/path/to/project/ThirdParty-Editor.csproj'
    Queue project update for '/path/to/project/Assembly-CSharp-Editor.csproj'
    Queue project update for '/path/to/project/PxlTestsAssembly.csproj'
    Queue project update for '/path/to/project/GooglePlayGamesEditor.csproj'
    Queue project update for '/path/to/project/com.unity.multiplayer-weaver.Editor.csproj'
    Queue project update for '/path/to/project/Unity.VSCode.Editor.csproj'
    Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.EditorTests.csproj'
    Detecting CSX files in '/path/to/project'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
    Loading project: /path/to/project/com.unity.multiplayer-hlapi.Runtime.csproj
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.BlockStructureWorkspaceOptionsProvider, Order: 140
    Configuration finished.
    Omnisharp server running using Stdio at location '/path/to/project' on host 14751.
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/com.unity.multiplayer-hlapi.Runtime.csproj'.

/path/to/project/com.unity.multiplayer-hlapi.Runtime.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/UnityEngine.UI.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/UnityEngine.UI.csproj'.

/path/to/project/UnityEngine.UI.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/UnityEngine.TestRunner.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/UnityEngine.TestRunner.csproj'.

/path/to/project/UnityEngine.TestRunner.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/Assembly-CSharp.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/Assembly-CSharp.csproj'.

/path/to/project/Assembly-CSharp.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/com.unity.multiplayer-hlapi.Tests.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/com.unity.multiplayer-hlapi.Tests.csproj'.

/path/to/project/com.unity.multiplayer-hlapi.Tests.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/ThirdParty.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/ThirdParty.csproj'.

/path/to/project/ThirdParty.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/ProjectNameProtoMain.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/ProjectNameProtoMain.csproj'.

/path/to/project/ProjectNameProtoMain.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/GooglePlayGames.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/GooglePlayGames.csproj'.

/path/to/project/GooglePlayGames.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/PxlAssembly.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/PxlAssembly.csproj'.

/path/to/project/PxlAssembly.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/PixelIAP.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/PixelIAP.csproj'.

/path/to/project/PixelIAP.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/Coffee.SoftMaskForUGUI.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/Coffee.SoftMaskForUGUI.csproj'.

/path/to/project/Coffee.SoftMaskForUGUI.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/PxlPlayModeTestsAssembly.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/PxlPlayModeTestsAssembly.csproj'.

/path/to/project/PxlPlayModeTestsAssembly.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/UnityEditor.TestRunner.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/UnityEditor.TestRunner.csproj'.

/path/to/project/UnityEditor.TestRunner.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/Unity.2D.Sprite.Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/Unity.2D.Sprite.Editor.csproj'.

/path/to/project/Unity.2D.Sprite.Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/com.unity.multiplayer-hlapi.Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/com.unity.multiplayer-hlapi.Editor.csproj'.

/path/to/project/com.unity.multiplayer-hlapi.Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/Coffee.SoftMaskForUGUI.Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/Coffee.SoftMaskForUGUI.Editor.csproj'.

/path/to/project/Coffee.SoftMaskForUGUI.Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/UnityEditor.UI.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/UnityEditor.UI.csproj'.

/path/to/project/UnityEditor.UI.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/Unity.2D.Tilemap.Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/Unity.2D.Tilemap.Editor.csproj'.

/path/to/project/Unity.2D.Tilemap.Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/ThirdParty-Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/ThirdParty-Editor.csproj'.

/path/to/project/ThirdParty-Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/Assembly-CSharp-Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/Assembly-CSharp-Editor.csproj'.

/path/to/project/Assembly-CSharp-Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/PxlTestsAssembly.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/PxlTestsAssembly.csproj'.

/path/to/project/PxlTestsAssembly.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/GooglePlayGamesEditor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/GooglePlayGamesEditor.csproj'.

/path/to/project/GooglePlayGamesEditor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/com.unity.multiplayer-weaver.Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/com.unity.multiplayer-weaver.Editor.csproj'.

/path/to/project/com.unity.multiplayer-weaver.Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/Unity.VSCode.Editor.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/Unity.VSCode.Editor.csproj'.

/path/to/project/Unity.VSCode.Editor.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Loading project: /path/to/project/com.unity.multiplayer-hlapi.EditorTests.csproj
    The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks
    Failed to load project file '/path/to/project/com.unity.multiplayer-hlapi.EditorTests.csproj'.

/path/to/project/com.unity.multiplayer-hlapi.EditorTests.csproj /home/username/.vscode/extensions/ms-dotnettools.csharp-1.23.1/.omnisharp/1.37.0/omnisharp/.msbuild/Current/Bin/Microsoft.Common.CurrentVersion.targets(1178,5): Error: The reference assemblies for .NETFramework,Version=v4.7.1 were not found. To resolve this, install the Developer Pack (SDK/Targeting Pack) for this framework version or retarget your application. You can download .NET Framework Developer Packs at https://aka.ms/msbuild/developerpacks

    Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-hlapi.Runtime.csproj
    Attempted to update project that is not loaded: /path/to/project/UnityEngine.UI.csproj
    Attempted to update project that is not loaded: /path/to/project/UnityEngine.TestRunner.csproj
    Attempted to update project that is not loaded: /path/to/project/Assembly-CSharp.csproj
    Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-hlapi.Tests.csproj
    Attempted to update project that is not loaded: /path/to/project/ThirdParty.csproj
    Attempted to update project that is not loaded: /path/to/project/ProjectNameProtoMain.csproj
    Attempted to update project that is not loaded: /path/to/project/GooglePlayGames.csproj
    Attempted to update project that is not loaded: /path/to/project/PxlAssembly.csproj
    Attempted to update project that is not loaded: /path/to/project/PixelIAP.csproj
    Attempted to update project that is not loaded: /path/to/project/Coffee.SoftMaskForUGUI.csproj
    Attempted to update project that is not loaded: /path/to/project/PxlPlayModeTestsAssembly.csproj
    Attempted to update project that is not loaded: /path/to/project/UnityEditor.TestRunner.csproj
    Attempted to update project that is not loaded: /path/to/project/Unity.2D.Sprite.Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-hlapi.Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/Coffee.SoftMaskForUGUI.Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/UnityEditor.UI.csproj
    Attempted to update project that is not loaded: /path/to/project/Unity.2D.Tilemap.Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/ThirdParty-Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/Assembly-CSharp-Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/PxlTestsAssembly.csproj
    Attempted to update project that is not loaded: /path/to/project/GooglePlayGamesEditor.csproj
    Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-weaver.Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/Unity.VSCode.Editor.csproj
    Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-hlapi.EditorTests.csproj

C# log

Installing C# dependencies... Platform: linux, x86_64, name=ubuntu, version=18.04

Downloading package ‘OmniSharp for Linux (x64)’ (47056 KB)… Done! Validating download… Integrity Check succeeded. Installing package ‘OmniSharp for Linux (x64)’

Downloading package ‘.NET Core Debugger (linux / x64)’ (54671 KB)… Done! Validating download… Integrity Check succeeded. Installing package ‘.NET Core Debugger (linux / x64)’

Downloading package ‘Razor Language Server (Linux / x64)’ (52580 KB)… Done! Installing package ‘Razor Language Server (Linux / x64)’

Finished

Environment information

VSCode version: 1.48.0 C# Extension: 1.23.1

Mono Information OmniSharp using built-in mono
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.401 Commit: 39d17847db

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

Host (useful for support): Version: 3.1.7 Commit: fcfdef8d6b

.NET Core SDKs installed: 2.2.402 [/usr/share/dotnet/sdk] 3.0.103 [/usr/share/dotnet/sdk] 3.1.401 [/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.0.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.0.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.7 [/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
cpptools ms-vscode 0.29.0
csharp ms-dotnettools 1.23.1
jsonnet heptio 0.1.0
jsonnet-formatter xrc-inc 0.3.0
unity-debug Unity 2.7.5
vscode-eclipse-keybindings alphabotsec 0.12.0
vscode-proto3 zxh404 0.4.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:32 (10 by maintainers)

github_iconTop GitHub Comments

99reactions
filipwcommented, Aug 20, 2020

The problem is that the new .NET Core 3.1 SDK isn’t supported by any current Mono release, so the setting "omnisharp.useGlobalMono" has been changed to "never" in 1.23.1 (see changelog https://github.com/OmniSharp/omnisharp-vscode/blob/master/CHANGELOG.md#1231-not-yet-released). This however is incompatible with Mono-based development e.g. Unity.

You can change it back yourself to "omnisharp.useGlobalMono": "always" which should fix your scenario.

16reactions
derwaldgeistcommented, Aug 20, 2020

Sample problem here on macOS. It’s really annoying that this all of a sudden broke Unity support in VSCode. 😕 This will affect a lot of people, I guess.

Hint for other users: The setting in the OmniSharp config dialog is called “Omnisharp: Use Global Mono”. I can confirm that setting this to “always” solved the problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code Error [SOLVED] - Unity Forum
Select v1.23.0 and let it install. Close out of VS Code. Open your Unity project, and the VS Project files will automatically be...
Read more >
Troubleshooting - Unity - Manual
If the Console reports that the hostfxr.dll library was found, but Unity failed to load it from C:\<path_to_app>\hostfxr.dll , you can fix this...
Read more >
Firebase Android SDK Release Notes
Fixed a Firebase App Check issue that caused Cloud Firestore listeners to stop working and receive a Permission Denied error. This issue only...
Read more >
Broken Unity project after git clone - unity3d - Stack Overflow
Diff markers may cause the following # file extensions to fail to load in VS. An alternative would be to treat # these...
Read more >
Unity3D - ArchWiki
Unity fails to build project to webGL plataform ... IL2CPP needs libtinfo-5.so library for the building process and ncurses5 provides it. So make...
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