So I followed this dev.to tutorial on installing Dot Net on my Manjaro Machine while also referring to this gist. All is well and installation was successful. When I run dotnet --info
:
? ~ dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.108
Commit: c423b556b5
Runtime Environment:
OS Name: manjaro
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/3.1.108/
Host (useful for support):
Version: 3.1.8
Commit: 05a0c8f6b1
.NET Core SDKs installed:
3.1.108 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 3.1.8 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
In an ideal situation, I should be able to fire up VS code, install the C# extensions and start building right away. However, I am greeted with an Omnisharp error:
"
Error: This project targets .NET version that requires reference assemblies that do not ship with OmniSharp out of the box (e.g. .NET Framework). The most common solution is to make sure Mono is installed on your machine (https://mono-project.com/download/) and that OmniSharp is started with that Mono installation (e.g. 'omnisharp.useGlobalMono':'always' in C# Extension for VS Code)." (+ more errors above this one)
To solve this, I installed the mono package from AUR repo even though the website officially doesn't support it and changed omnisharp.useGlobalMono
as per the instruction. Restarted the machine and reloaded VScode but it still shows up the error!
I'm guessing that this error is preventing me from compiling my hello world program in C#:
? hwapp dotnet run
/home/noel/Documents/hwapp/hwapp.csproj : error MSB4236: The SDK 'Microsoft.NET.Sdk' specified could not be found.
The build failed. Fix the build errors and run again.
? hwapp
On any given day, I'd wipe my device and install Ubuntu but I'm pretty sure there are some knowledge people out there. Much appreciated :)
question from:
https://stackoverflow.com/questions/65938882/omnisharp-msbuild-projectmanager-error-even-after-dot-net-has-been-successfully 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…