Skip to content

Multiple .NET SDK versions? #389

@justinyoo

Description

@justinyoo

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:

  1. In Dockerfile, select the base container image from mcr.microsoft.com/dotnet/sdk:7.0
  2. In devcontainer.json, run a shell script, say post-create.sh, through postCreateCommand.
  3. In post-create.sh, run the dotnet-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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions