user19214854
user19214854

Reputation:

How to enable intellisense in VS Code for C# when .net sdk installed via snap

I've downloaded this extension: screen image

Working folder is selected, .csproj is selected. I did enable and disabled the extension, restarted VS Code, but still it didnt help. There are only keywords that i'm using in the list, but no any System.Object and other types functionality available: screen image 2

upd: Forgot to mention that my sdk and runtime installed via snap tool, so .net sdk path is /snap/dotnet-sdk/167/sdk/5.0.408/ Could snap be the problem, if yes, how to fix it?

Upvotes: 1

Views: 765

Answers (2)

CSharp
CSharp

Reputation: 1583

After updating Omnisharp version to v1.25.0, it was not able to locate MSBuild for me. I have installed .Net 6.0 and omnisharp was able to locate MSBuild from there.

The older version of Omnisharp has MSBuild available within their extension install folder C:\Users\Username.vscode\extensions\ms-dotnettools.csharp-XX.XX.XX....omnisharp\X.XX.XX\msbuild

Upvotes: 1

user19214854
user19214854

Reputation:

Omg, changed version of omnisharp extension from newest to v1.24.4 and it helped.....

Upvotes: 2

Related Questions