Assertfail

Patch net7 dev container for net8

14 Nov 2023

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

Tags


Comments

Do you want to send a comment or give me a hint about any issues with a blog post: Open up an issue on GitHub.

Do you want to fix an error or add a comment published on the blog? You can do a fork of this post and do a pull request on github.