Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mpartel opened this issue Aug 20, 2020 · 32 comments
Closed

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

mpartel opened this issue Aug 20, 2020 · 32 comments

Comments

@mpartel
Copy link

mpartel commented Aug 20, 2020

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)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
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"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
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'
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
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
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in '/path/to/project'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in '/path/to/project/projectname.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.Runtime.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/UnityEngine.UI.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/UnityEngine.TestRunner.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/Assembly-CSharp.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.Tests.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/ThirdParty.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/ProjectNameProtoMain.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/GooglePlayGames.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/PxlAssembly.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/PixelIAP.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/Coffee.SoftMaskForUGUI.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/PxlPlayModeTestsAssembly.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/UnityEditor.TestRunner.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/Unity.2D.Sprite.Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/Coffee.SoftMaskForUGUI.Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/UnityEditor.UI.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/Unity.2D.Tilemap.Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/ThirdParty-Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/Assembly-CSharp-Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/PxlTestsAssembly.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/GooglePlayGamesEditor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/com.unity.multiplayer-weaver.Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/Unity.VSCode.Editor.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for '/path/to/project/com.unity.multiplayer-hlapi.EditorTests.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in '/path/to/project'.
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.MSBuild.ProjectManager
Loading project: /path/to/project/com.unity.multiplayer-hlapi.Runtime.csproj
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.BlockStructureWorkspaceOptionsProvider, Order: 140
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location '/path/to/project' on host 14751.
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectLoader
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
[warn]: OmniSharp.MSBuild.ProjectManager
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
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/UnityEngine.UI.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/UnityEngine.TestRunner.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/Assembly-CSharp.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-hlapi.Tests.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/ThirdParty.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/ProjectNameProtoMain.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/GooglePlayGames.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/PxlAssembly.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/PixelIAP.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/Coffee.SoftMaskForUGUI.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/PxlPlayModeTestsAssembly.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/UnityEditor.TestRunner.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/Unity.2D.Sprite.Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-hlapi.Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/Coffee.SoftMaskForUGUI.Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/UnityEditor.UI.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/Unity.2D.Tilemap.Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/ThirdParty-Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/Assembly-CSharp-Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/PxlTestsAssembly.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/GooglePlayGamesEditor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/com.unity.multiplayer-weaver.Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
Attempted to update project that is not loaded: /path/to/project/Unity.VSCode.Editor.csproj
fail: OmniSharp.MSBuild.ProjectManager
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
@mpartel mpartel changed the title v1.23.1 fails to Unity project, worked with v1.23.0 v1.23.1 fails to load Unity project, worked with v1.23.0 Aug 20, 2020
@filipw
Copy link
Contributor

filipw commented 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.

@juniordiscart
Copy link

@filipw Had the same issue as @mpartel, but setting it to "auto" didn't fix it. "always" did the trick though... I'm on macos 10.15.6, he seems to be on Ubuntu.

@filipw
Copy link
Contributor

filipw commented Aug 20, 2020

sorry I meant always 😂

@mpartel
Copy link
Author

mpartel commented Aug 20, 2020

From the release notes I gather this is a temporary state of affairs, but if it's prolonged, perhaps "auto" could be made to have the old meaning as a special case for Unity projects?

@filipw
Copy link
Contributor

filipw commented Aug 20, 2020

I opened an issue on Mono a while ago mono/mono#20250
Once this is fixed and there is a stable Mono release with MSBuild 16.7 we can revert back to the original approach with the minimum version of Mono raised to that new Mono release.

@derwaldgeist
Copy link

derwaldgeist commented 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.

@HawkenKing
Copy link

This fixed the issue, thanks.

@solocatz
Copy link

Same issue, caused a lot of trouble and very time consuming.
My work around is simple. Just downgrade to 1.22.x and stay there for a while :(

@filipw
Copy link
Contributor

filipw commented Aug 21, 2020

My work around is simple. Just downgrade to 1.22.x and stay there for a while :(

The problem with this is that 1.22.x is not be compatible with the latest .NET Core 3.1 SDK, so it locks you out from development with that.

1.23.1 can work with both latest .NET Core 3.1 SDK (3.1.401) and Unity, however, as mentioned above, for Unity you need to set "omnisharp.useGlobalMono": "always". Conversely, for .NET Core SDK 3.1.401 you need to set it back to "omnisharp.useGlobalMono": "never" (or not set anything if you never changed the setting, since that is the new default).

@tijanirf
Copy link

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.

This solution works on ubuntu 18.04 too, thanks a lot man.

@Kromilan
Copy link

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

Can someone tell me WHERE to write that? Into which file in which folder does that line go? The hint would be very appreciated.

@filipw
Copy link
Contributor

filipw commented Aug 22, 2020

in VS Code settings (there is an icon to switch to JSON view) or use the option "Omnisharp: Use Global Mono" in the UI view of the settings

@Kromilan
Copy link

in VS Code settings (there is an icon to switch to JSON view) or use the option "Omnisharp: Use Global Mono" in the UI view of the settings

You just made me the happiest I have been all month. Thank you so much.

@Knayd
Copy link

Knayd commented Aug 22, 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.

Can confirm it works on Ubuntu 20.04 too, thanks

@drew-512
Copy link

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.

I tried all this with no success. Turned out the issue was that were old auto-generated .csproj files from Unity that were confusing VS/C# throughly. Anyone experiencing this I recommend nuking all your .csproj and .sln files and re-opening your project in Unity. The switch to 1.23 for whatever reason started to access those old project files instead.

@zachstronaut
Copy link

As a Unity developer, I hate losing a half hour or more of work every time I upgrade the C# plugin. It happens at least quarterly. And then I have to find the ticket explaining what got changed. Do I need to pressure Unity to care about this? I feel like they owe the c# extension devs quite a lot.

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.

@drew-512
Copy link

drew-512 commented Sep 1, 2020

As a Unity developer, I hate losing a half hour or more of work every time I upgrade the C# plugin. It happens at least quarterly. And then I have to find the ticket explaining what got changed. Do I need to pressure Unity to care about this? I feel like they owe the c# extension devs quite a lot.

I feel you, but I suspect that you're not impressing anyone here when you say you spent half an hour chasing something down. I like to look at it the positive way -- an opportunity to learn about new things and how hard others have had to work to make sure that your experience is as good as it is. Otherwise, I would say reconsider what it is that you think you know about the deployment complexities of C#, VSC, and Unity interwoven together.

Oh also, if you are interested in further others' efforts that maintain the codebases that support your world, you probably could at least transmute that negative energy into posting your system info, what you tested/tried lately (regression), and what debug info you're seeing.

@zachstronaut
Copy link

As a Unity developer, I hate losing a half hour or more of work every time I upgrade the C# plugin. It happens at least quarterly. And then I have to find the ticket explaining what got changed. Do I need to pressure Unity to care about this? I feel like they owe the c# extension devs quite a lot.

I feel you, but I suspect that you're not impressing anyone here when you say you spent half an hour chasing something down. I like to look at it the positive way -- an opportunity to learn about new things and how hard others have had to work to make sure that your experience is as good as it is. Otherwise, I would say reconsider what it is that you think you know about the deployment complexities of C#, VSC, and Unity interwoven together.

Oh also, if you are interested in further others' efforts that maintain the codebases that support your world, you probably could at least transmute that negative energy into posting your system info, what you tested/tried lately (regression), and what debug info you're seeing.

Nothing you said is relevant to the situation. You're just chiming in to insult me. Feel better?

@derwaldgeist
Copy link

derwaldgeist commented Sep 2, 2020

Hey guys, calm down, this is in fact a pretty complex tech setup, and I appreciate the work of its maintainers.

I agree with @zachstronaut in one aspect: I'm also struggling every time I want to setup a new Unity project with the C# VSCode extensions. Sometimes it works right away, sometimes just nothing happens (no intellisense, no references). Sometimes, there is only one .sln file being generated, sometimes it's a whole bunch of them. To be honest, I don't have the slightest clue what they are for. (I guess they somehow contain hints about C# assemblies, but I am not really sure.)

It would be awesome to have an in-depth guide that explains the fundamentals of the setup, especially what all these .sln files actually mean and how to trouble-shoot a setup that won't work. The log file outputs of OmniSharp alone are all double Dutch to me. I guess that would be more a task for Unity themselves, but I am not sure how to reach them. Maybe you have direct contacts there so you could address this? Happy to help if you need more explanations from a pure user / Unity dev perspective.

@forhadcmt
Copy link

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.

Thanks a lot! It's save my life! Finally I solved the problem. Thanks a lot brother.

@rahzaazhar
Copy link

Thanks a Lot worked for me too. (Ubuntu 18.04, v1.23.2, dotnet 3.1)

@Thaina
Copy link
Contributor

Thaina commented Oct 13, 2020

Seem like auto updating today (1.23.3) just break my unity project. Need to revert back to 1.23.2 to fix it

@derwaldgeist
Copy link

Same here. This is so frustrating.

@derwaldgeist
Copy link

@Thaina How can I revert to a previous version?

@Thaina
Copy link
Contributor

Thaina commented Oct 13, 2020

@Thaina How can I revert to a previous version?

here

image

@mopsicus
Copy link

@Thaina How can I revert to a previous version?

here

image

Thanks! It fixed the problem.

@zachstronaut
Copy link

Intellisense in 1.23.3 was working correctly for Unity generated csproj/sln files. I didn't recently upgrade to 1.23.3, and I didn't change Unity versions, and then suddenly tonight Intellisense just stopped working correctly on two different laptops. Upgrading to 1.23.4 did not help. I did recently upgrade VSCode itself to 1.50.1. And of course I can't rule out Unity deciding to regenerate csproj/sln files.

Downgrading to 1.23.2 fixed my problems immediately.

@Thaina
Copy link
Contributor

Thaina commented Nov 10, 2020

1.23.5 still have this problem

@filipw
Copy link
Contributor

filipw commented Nov 10, 2020

this is caused not by OmniSharp but by the Unity extension. Please ensure that you have updated your VSCode Editor package in Unity to version 1.2.3. See the comments in this issue for more details - #4113 (comment)

I will close this as duplicate of #4180 and several other issues - thanks.

@Thaina
Copy link
Contributor

Thaina commented Nov 11, 2020

I see. I actually update unity package for such time but it seem we also need to remove csproj and sln files then regenerate project to fix this problem

@PandeCode
Copy link

I also found it useful to remove the Jet Brains Rider Editor package from the unity project as the dll that came with it did not have a reference so it cause ominisharp to freak out over nothing.

@CrashBam
Copy link

CrashBam commented Nov 9, 2021

VSCode on a Mac problems with Omnisharp not loading.
YouTube user : Axiom He explains how to fix Omnisharp loading. After I followed his video, It fixed my loading problem. On your C# exstions under the gear pick "Extension Settings" then in the search bar add "useGlobalMono" - Under Use Global Mono - change "auto" to "always" and restart Omnisharp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests