microsoft / vscode-dev-containers

NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!
https://aka.ms/vscode-remote
MIT License
4.72k stars 1.41k forks source link

Not able to use .net 6 LTS in 22.04 LTS. #1637

Closed anirugu closed 1 year ago

anirugu commented 1 year ago

I am trying to do add container configuration and use 22.04 option. This is the config I use

// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/ubuntu
{
    "name": "Ubuntu",
    "build": {
        "dockerfile": "Dockerfile",
        // Update 'VARIANT' to pick an Ubuntu version: jammy / ubuntu-22.04, focal / ubuntu-20.04, bionic /ubuntu-18.04
        // Use ubuntu-22.04 or ubuntu-18.04 on local arm64/Apple Silicon.
        "args": { "VARIANT": "ubuntu-22.04" }
    },

    // Use 'forwardPorts' to make a list of ports inside the container available locally.
    // "forwardPorts": [],

    // Use 'postCreateCommand' to run commands after the container is created.
    // "postCreateCommand": "uname -a",

    // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
    "remoteUser": "vscode",
    "features": {
        "docker-in-docker": "latest",
        "docker-from-docker": "latest",
        "node": "lts",
        "dotnet": "latest"
    }
}

not able to usse dotnet.

image I search the existing issue and this one look similar https://github.com/microsoft/vscode-dev-containers/issues/1458

Chuxel commented 1 year ago

.NET 6 is out including the ubuntu 22.04 pre-built image. If you are still experiencing issues, please raise an issue in the feature repository (https://github.com/devcontainers/features) or the image repository (https://github.com/devcontainers/images). The .NET feature is not maintained in this repository anymore.