tintoy / msbuild-project-tools-vscode

VS Code extension for MSBuild intellisense (including PackageReference completion).
MIT License
83 stars 17 forks source link

No compatible .NET runtime found #150

Closed lonix1 closed 4 months ago

lonix1 commented 4 months ago

Problem started after upgrading to vscode-csharp 2.31.19 released yesterday.

When reopening vscode I get the normal popup:

Initialising MSBuild project tools...

But it runs forever. So I opened the "C#" log which has this:

Failed to find dotnet info from path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
No compatible .NET runtime found. Minimum required version is 8.0.

I'm still on v7. Is that no longer supported?

dotnet 7.0.409 vscode 1.89.1 (latest) c# extension 2.31.19 (latest) msbuild extension 0.6.3 (latest)

lonix1 commented 4 months ago

Strange, I restarted a few times and now the log shows:

Failed to find dotnet info from path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
No compatible .NET runtime found. Minimum required version is 8.0.
Dotnet path: /home/username/.config/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/8.0.6~x64/dotnet
Activating C# standalone...
waiting for named pipe information from server...
[stdout] {"pipeName":"/tmp/d6eead1b.sock"}
received named pipe information from server
attempting to connect client to server...
client has connected to server
[Info  - 2:08:41 AM] [Program] Language server initialized

And the popup eventually disappears.

tintoy commented 4 months ago

Yeah sorry, not sure what was going on there but glad to hear it eventually resolved itself!