Open micahasmith opened 3 years ago
This is likely a similar scenario as Snap installs of the SDK. I would recommend you use the official installer (https://dotnet.microsoft.com/download/dotnet/5.0) or try this fix for Snap installs (https://github.com/OmniSharp/omnisharp-vscode/wiki/Configuring-Snap-installs-of-dotnet-sdk.) with the path updated to match the Cellar install path.
I tried the official installer-- same issue.
@micahasmith Can you share the new output of dotnet --info
?
➜ 5.0.201 dotnet --info
.NET SDK (reflecting any global.json):
Version: 5.0.302
Commit: c005824e35
Runtime Environment:
OS Name: Mac OS X
OS Version: 11.0
OS Platform: Darwin
RID: osx.11.0-x64
Base Path: /usr/local/share/dotnet/sdk/5.0.302/
Host (useful for support):
Version: 5.0.8
Commit: 35964c9215
.NET SDKs installed:
3.1.411 [/usr/local/share/dotnet/sdk]
5.0.201 [/usr/local/share/dotnet/sdk]
5.0.302 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.17 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.4 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.8 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.17 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.4 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.8 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
➜ 5.0.201
btw I tried setting SDKPath but it didn't pick it up
I'm having the exact same problem. Works in ZSH but VSCode doesn't pick it up.
I'm running into the same issue. Can run everything dotnet
related from the terminal, but nothing dotnet
related in VS Code via OmniSharp extension.
I'm also running into the same issue, and this is the second time that OmniSharp inexplicably in VSCode. I will no longer recommend anyone use VSCode to develop C#, this instability is unacceptable.
Had to uninstall and reinstall OmniSharp to fix this problem, but I also ended up installing every single version of the .NET 6 Preview SDK to see if it fixed the issue. Who knows what was really the problem...
Issue Description
Can't get a .net core project to work on macosx-- here's the terminal output.
Steps to Reproduce
Expected Behavior
Actual Behavior
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.59.0 C# Extension: 1.23.14
Mono Information
OmniSharp using built-in monoDotnet Information
.NET SDK (reflecting any global.json): Version: 5.0.205 Commit: 64a0cf25eb Runtime Environment: OS Name: Mac OS X OS Version: 11.4 OS Platform: Darwin RID: osx.11.0-x64 Base Path: /usr/local/Cellar/dotnet/5.0.205/libexec/sdk/5.0.205/ Host (useful for support): Version: 5.0.8 Commit: 42ac4d6d5a .NET SDKs installed: 5.0.205 [/usr/local/Cellar/dotnet/5.0.205/libexec/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 5.0.8 [/usr/local/Cellar/dotnet/5.0.205/libexec/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 5.0.8 [/usr/local/Cellar/dotnet/5.0.205/libexec/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |calva|betterthantomorrow|2.0.208| |copilot|GitHub|1.3.2283| |csharp|ms-dotnettools|1.23.14| |dart-code|Dart-Code|3.25.1| |flutter|Dart-Code|3.25.0| |jupyter|ms-toolsai|2021.8.1195043623| |paperclip-vscode|crcn|17.14.7| |prettier-vscode|esbenp|8.1.0| |python|ms-python|2021.8.1105858891| |remote-containers|ms-vscode-remote|0.191.0| |remote-kubernetes|Okteto|0.3.3| |remote-ssh|ms-vscode-remote|0.65.7| |remote-ssh-edit|ms-vscode-remote|0.65.7| |synthwave-vscode|RobbOwen|0.1.8| |vscode-docker|ms-azuretools|1.15.0| |vscode-mysql|formulahendry|0.4.1| |vscode-pull-request-github|GitHub|0.29.0| |vscode-pylance|ms-python|2021.8.0| |vscodeintellicode|VisualStudioExptTeam|1.2.14| |vsliveshare|ms-vsliveshare|1.0.4673|;