Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found dotnet version 7.0.10. Minimum required version is 7.0.100. #6167

Closed
axiannv233 opened this issue Aug 18, 2023 · 4 comments · Fixed by #6175
Closed

Found dotnet version 7.0.10. Minimum required version is 7.0.100. #6167

axiannv233 opened this issue Aug 18, 2023 · 4 comments · Fixed by #6175
Assignees
Milestone

Comments

@axiannv233
Copy link

Environment data

dotnet --info output:
.NET SDK:
Version: 7.0.400
Commit: 73bf45718d

运行时环境:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.400\

Host:
Version: 7.0.10
Architecture: x64
Commit: a6dbb800a4

.NET SDKs installed:
6.0.202 [C:\Program Files\dotnet\sdk]
7.0.306 [C:\Program Files\dotnet\sdk]
7.0.400 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.4 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download
VS Code version:1.81.1
C# Extension version: v2.0.376

OmniSharp log

Steps to reproduce

Failed to find dotnet info from path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
Found dotnet version 7.0.10. Minimum required version is 7.0.100.
Dotnet path: c:\Users\biwy\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\7.0.10\dotnet.exe
Activating C# + C# Dev Kit + C# IntelliCode...
[Info - 11:02:16 AM] [Program]Language server initialized

Expected behavior

A clear and concise description of what you expected to happen.

Actual behavior

Additional context

Add any other context about the problem here.

@dibarbet
Copy link
Member

dibarbet commented Aug 19, 2023

Thanks for the report. The issue here is that dotnet --info is sometimes outputting the runtime version instead of the SDK version in the host section

Host:
Version: 7.0.10

Since we're looking for the SDK version we fail to recognize it. This can be fixed by us instead looking for exactly the runtimes or sdks (via dotnet --list-sdks or dotnet --list-runtimes).

Will fix this.

@dibarbet
Copy link
Member

Fix - #6175

@tclugao
Copy link

tclugao commented Oct 21, 2023

how to workaround this bug, I am in WSL2 20.02 and also meet this issue, I already installed the latest version of .NET runtime extension?

@IllyaYushchenko
Copy link

same problem still. VScode on WSL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants