microsoft / microsoft/vscode-dotnettools
Can't find dotnet on path from dotnetup on Ubuntu 26.04
@haileymck is already working on this.
Since Sep 18, 2026.
- Dominant language
- No language data
- Stars
- 321
- Forks
- 54
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 2
Description
Describe the issue
On a fresh install of Ubuntu 26.04 that never had dotnet installed any other way other than dotnetup, dotnet --info works fine from all command lines but C# Dev kit fails saying it can't find the dotnet sdk. The version that it demands is explicitly in the list of dotnet --list-sdks.
I've tried legacy resolution and not, tried to give it the shared path to the dotnet cli, tried custom setting it insists it isn't there even though all terminals in vs code can see it just fine.
I have DOTNET_ROOT set correctly as well care of the dotnetup setup.
Collect logs
csdevkit-logs-2026-09-18T12-34-40.zip
Steps to reproduce
Install Ubuntu 26.04 clean
Install dotnetup
Install whatever sdk you need with dotnetup or just use .net 10 that it automatically installs.
Restart just to make sure that the path is all picked up etc.
Open VS Code. Will error on workspace requirements and you'll get a message at the bottom that it can't find the dotnet sdk.
Expected behavior
Should just work because it shouldn't be doing anything special other than dotnet cli showing up on the command line.
Environment information
Should be in the logs attached.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.