Skip to content

make devcontainer work with unpublished sdks #18847

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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. (?)

Copy link
Contributor

✅ No release notes required

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

Successfully merging this pull request may close these issues.

1 participant