0
comment
comment
on 11/14/2023 12:17 PM
Since there isn’t an official dev container for net8 yet, you can use the net7 dev container and the setup scripts mention on Microsoft Learn.
Instead of the base image:
FROM mcr.microsoft.com/devcontainers/dotnet:0-7.0
You can add the following to ensure that net8 is installed:
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
RUN chmod +x ./dotnet-install.sh
RUN sudo ./dotnet-install.sh --channel 8.0 --install-dir /usr/share/dotnet