❔ Cannot start OmniSharp due to error on MacOS
The error said I haven't install
.NET 6 SDK for arm64
even though I tried to install it TWICE. I can still run code and stuff, however the Intellisense or the Code Outline doesn't seem to work because they need OmniSharp.
How do I fix this?
12 Replies
what is the output of
dotnet --list-sdks
6.0.402 [/usr/local/share/dotnet/x64/sdk]
It seems my installation didn't work.
So I tried another method here https://github.com/isen-ng/homebrew-dotnet-sdk-versions, a successful installation.
But after checking dotnet --list-sdks
nothing changed...
So how do I fix it? I have tried many things and none worked 😦
Thank you, let me check it out
I think I did something, now the omnisharp seems to work but my entired code is covered in blood red and I couldn't run it (could before lol)
The type or namespace name 'System' could not be found in the global namespace (are you missing an assembly reference?)
@Diddy
When I tried to run code, it said no project to run
Even though I'm in the folder of a project
Ok, I think I found something:
In the .csproj if I change TargetFramework to net7.0 -> no more code errors highlighted, but I couldn't run the programme
If I keep it at nêt.0 -> all code erros highlights, but I could run the codemhm in .net 6+ app System should be known due to Implicite usings
No matter what I tried, the SDK kept stuck as 6.0.402
might check your .csproj file if implicite usins are enabled or not
if its disbabled you might have to add
using System;
@Florian Voß This is my .csproj file
mhm so its enabled
no idea then
I'm thinking about the last resort would be wiping .NET and its related components completely from my mac then do a clean install
But it seems uninstalling also complicated
Why 😦
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Okay, I have no idea what just happened but I closed VSCode following @TeBeClone suggestion. Checking
dotnet --list-sdks
all of sudden it's now 7.0
I change target framework in the .csproj and everything works perfectly
Anyway, thank y'all for the support.Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.
Was this issue resolved? If so, run /close
- otherwise I will mark this as stale and this post will be archived until there is new activity.