Skip to content

Conversation

@Martin521
Copy link
Contributor

@Martin521 Martin521 commented Aug 14, 2025

Description

This enables devcontainer also when global.json requests an unofficial new SDK (like we now often have).
The change is not really nice, but the only way that I found after much trying.
The issue is that the Microsoft SDK devcontainer images install dotnet in /usr, while eng/common/dotnet.sh (which is needed to get the unofficial SDK) installs into the workspace folder, and, unfortunately, this cannot be changed.
While the local version is fine for terminal use, it is not found by Ionide, that's why the copying in postCreateCommand is necessary.
Not so nice is that on creation you get a lot of error messages from Ionide. After reload, however, everything works fine.

@vzarytovskii @baronfel : Any other ideas?

Related: #18715

EDIT:
Maybe the root issue is that Ionide doesn't respect the remoteEnv:PATH. If I understand the devcontainer documentation correctly, it should. (?)

@github-actions
Copy link
Contributor

✅ No release notes required

@T-Gro
Copy link
Member

T-Gro commented Aug 25, 2025

@Martin521 : I will trust your judgement here, as I do not use devcontainer much myself 👍 .
Let's give it a go and iterate if needed.

@github-project-automation github-project-automation bot moved this from New to In Progress in F# Compiler and Tooling Aug 25, 2025
@T-Gro T-Gro merged commit fbfef29 into dotnet:main Aug 25, 2025
38 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in F# Compiler and Tooling Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants