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:


You can add the following to ensure that net8 is installed:

RUN wget -O
RUN chmod +x ./
RUN sudo ./ --channel 8.0 --install-dir /usr/share/dotnet



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.