Closed jtsom closed 5 days ago
This seems really like a dotnet SDK issue not an OmniSharp issue.
You can try the suggestion mentioned here https://github.com/dotnet/aspnetcore/issues/27990#issuecomment-733868864
No, this is a omnisharp-vscode issue, as the directions I followed are from this project:
The error in your log is only displayed by OmniSharp but is coming from the MSBuild included in the dotnet SDK.
A lot has changed with O# sdk resolution since this issue was opened. If you are still having problems, please open a new issue at https://github.com/omnisharp/omnisharp-roslyn/issues
Issue Description
After turning on "omnisharp.useModernNet" option, the project fails to load, with an error:
Steps to Reproduce
Launch VSCode with .Net 6 project.
Expected Behavior
No errors
Actual Behavior
Error reported above
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.64.0-insider C# Extension: 1.24.0
Dotnet Information
.NET SDK (reflecting any global.json): Version: 6.0.200-preview.22055.15 Commit: a3c3a2bf3b Runtime Environment: OS Name: Windows OS Version: 10.0.19044 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\6.0.200-preview.22055.15\ Host (useful for support): Version: 6.0.1 Commit: 3a25a7f1cc .NET SDKs installed: 5.0.404 [C:\Program Files\dotnet\sdk] 6.0.101 [C:\Program Files\dotnet\sdk] 6.0.200-preview.22055.15 [C:\Program Files\dotnet\sdk] .NET runtimes installed: Microsoft.AspNetCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.22 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |azure-account|ms-vscode|0.9.11| |csharp|ms-dotnettools|1.24.0| |git-graph|mhutchie|1.30.0| |hexeditor|ms-vscode|1.9.3| |hl7tools|RobHolme|1.13.2| |material-icon-theme|PKief|4.12.1| |msbuild-project-tools|tintoy|0.4.3| |night-owl|sdras|2.0.1| |quicktype|quicktype|12.0.46| |sync-scroll|dqisme|1.3.0| |TabOut|albert|0.2.1| |vs-code-xml-format|fabianlauer|0.1.5| |vscode-azurefunctions|ms-azuretools|1.6.0| |vscode-azureresourcegroups|ms-azuretools|0.4.0| |vscode-azurestorage|ms-azuretools|0.12.1| |vscode-base64|adamhartford|0.1.0| |vscode-thunder-client|rangav|1.10.0| |vscodeintellicode|VisualStudioExptTeam|1.2.15|;