Closed devgibsonsp closed 4 years ago
Same here. Can confirm that downgrade to 1.32.2 fixes the issue.
This is a duplicate. A recent change in OmniSharp to make project loading more correct, exposed a Unity bug. See https://github.com/OmniSharp/omnisharp-vscode/issues/4113#issuecomment-714748347
Issue Description
I recently came back to a project in Unity 3D that I had been working on around 4 months ago. At the time, I was using VS Code as my editor/debugger. There were no assembly reference issues. Coming back to the project. Literally thousands of assembly reference issues. I tracked it down to v1.23.3 of this extension causing the issue.
I also followed the directions in the changelog here:
And it hasn't seemed to have had an effect.
Steps to Reproduce
I can't say for sure if this is very specific to Unity 3D or more widespread so my steps will reflect my own circumstance.
Expected Behavior
Assembly references to work properly if the project itself has no underlying issues with it
Actual Behavior
1000s of "missing" assembly references despite no actual issue with the code
Logs
OmniSharp log
C# log
N/A as I build my code in Unity rather than VSCode
Environment information
VSCode version: 1.50.1 C# Extension: 1.23.3
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.1.602 Commit: 04475eb7cf Runtime Environment: OS Name: Windows OS Version: 10.0.18362 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.602\ Host (useful for support): Version: 2.1.9 Commit: dcedc87d22 .NET Core SDKs installed: 2.1.602 [C:\Program Files\dotnet\sdk] .NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |aurora-x|marqu3s|2.0.2| |csharp|ms-dotnettools|1.23.3| |deepdark-material|Nimda|3.2.1| |firefly|ankitcode|3.0.1| |nicer-high-contrast|rafmsou|1.0.5| |night-coder|a5hk|0.20.2| |particle-vscode-theme|particle|1.12.5| |printcode|nobuhito|3.0.0| |python|ms-python|2020.9.114305| |signed-dark-pro|alex-munene|1.5.0| |unity-debug|Unity|2.7.5| |unity-tools|Tobiah|1.2.12| |vscode-pitch-black-theme|viktorqvarfordt|1.2.3| |vsliveshare|ms-vsliveshare|1.0.3046| |zeonica|andrewvallette|1.3.1|;