C
C#11mo ago
Crazy Diamond

The type or namespace name 'System' could not be found (are you missing a using directive or an asse

I am on Linux, using VSCode, and OmniSharp shows all of these messages on most lines, along with Predefined type 'System.Object' is not defined or imported. I've tried dotnet restore, dotnet clean etc.
15 Replies
Angius
Angius11mo ago
Does it build fine?
Crazy Diamond
Crazy DiamondOP11mo ago
Yes.
Angius
Angius11mo ago
Maybe it's just Omnisharp having an aneurysm then
Buddy
Buddy11mo ago
Use DevKit Forget about O#
Angius
Angius11mo ago
Was about to say, yeah
Crazy Diamond
Crazy DiamondOP11mo ago
Ah, OK Oh, I have Dev Kit installed apparently.
Buddy
Buddy11mo ago
$vscode
MODiX
MODiX11mo ago
Follow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
Get started with C# and .NET in Visual Studio Code
Getting Started with C# and .NET Development in Visual Studio Code
Crazy Diamond
Crazy DiamondOP11mo ago
That is what I did, yeah?
Angius
Angius11mo ago
Huh... What's your .NET version? And what version does the project use?
Crazy Diamond
Crazy DiamondOP11mo ago
8.0.4 And 8.0.4
Angius
Angius11mo ago
Huh No idea what else could be wrong besides "VSCode being VSCode"
Crazy Diamond
Crazy DiamondOP11mo ago
Huh
Buddy
Buddy11mo ago
VSCode is a horrible editor, yes. At least regarding bugs Though it's not VSCode itself but the extensions for it
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?