C
C#12mo 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
Angius12mo ago
Does it build fine?
Crazy Diamond
Crazy DiamondOP12mo ago
Yes.
Angius
Angius12mo ago
Maybe it's just Omnisharp having an aneurysm then
Buddy
Buddy12mo ago
Use DevKit Forget about O#
Angius
Angius12mo ago
Was about to say, yeah
Crazy Diamond
Crazy DiamondOP12mo ago
Ah, OK Oh, I have Dev Kit installed apparently.
Buddy
Buddy12mo ago
$vscode
MODiX
MODiX12mo 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 DiamondOP12mo ago
That is what I did, yeah?
Angius
Angius12mo ago
Huh... What's your .NET version? And what version does the project use?
Crazy Diamond
Crazy DiamondOP12mo ago
8.0.4 And 8.0.4
Angius
Angius12mo ago
Huh No idea what else could be wrong besides "VSCode being VSCode"
Crazy Diamond
Crazy DiamondOP12mo ago
Huh
Buddy
Buddy12mo 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 User12mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?