-
Notifications
You must be signed in to change notification settings - Fork 404
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
Multiple .NET SDK versions? #389
Comments
Option 1 - The mcr.microsoft.com/devcontainers/universal:2 consists of .NET 7 & 6. Maybe you could use that as the base container image? Option 2 - We have an experimental Can you try adding the following to "features": {
"ghcr.io/devcontainers/features/dotnet:1": {
"version": "7",
"additionalVersions": "6"
}
} |
Oh, I might try the Option 2, then. Thanks! |
By the way, devcontainer-feature.json doesn't define the |
@justinyoo Yep, we had added it as an experimental option and hence, didn't document it. As we can see a request for it, we'd think of either formalizing that option or finding another better approach for this scenario. |
Hi @justinyoo were you able to make it work? I tried this Option 2 but the install script is not installing the additional versions. |
Adding
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"features": {
"ghcr.io/devcontainers/features/node:latest": {},
"ghcr.io/devcontainers/features/dotnet:latest": {
"version": "7",
"additionalVersions": "6"
},
"ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:latest": {}
}, |
Hi, Team.
I was wondering if it's possible to install multiple .NET SDKs in one devcontainer settings. For example, I'd like to install both .NET 7 and .NET 6 in one devcontainer environment.
What I tried was:
Dockerfile
, select the base container image frommcr.microsoft.com/dotnet/sdk:7.0
devcontainer.json
, run a shell script, saypost-create.sh
, throughpostCreateCommand
.post-create.sh
, run thedotnet-install.sh
script by following this document to install .NET 6.However, it didn't go well as intended. Would you be able to provide some guidance to install multiple .NET SDK versions - STS and LTS?
Cheers,
The text was updated successfully, but these errors were encountered: