Skip to content

Update devcontainer to support .NET 9 and .NET 10#1843

Open
brendandburns wants to merge 2 commits into
masterfrom
chore/devcontainer-dotnet-9-10
Open

Update devcontainer to support .NET 9 and .NET 10#1843
brendandburns wants to merge 2 commits into
masterfrom
chore/devcontainer-dotnet-9-10

Conversation

@brendandburns

Copy link
Copy Markdown
Contributor

Summary

  • switch .devcontainer/devcontainer.json from a fixed .NET 8 image to a Dockerfile-based build
  • add .devcontainer/Dockerfile based on mcr.microsoft.com/dotnet/sdk:10.0
  • install .NET 9 SDK side-by-side via dotnet-install.sh

Why

The repository currently targets newer TFMs in CI and local workflows. This devcontainer update ensures contributors can build and test net9.0/net10.0 projects from the container environment.

Validation

  • branch builds with updated devcontainer configuration files
  • .NET 9 and .NET 10 SDK availability is provisioned by container build steps

Copilot AI review requested due to automatic review settings July 15, 2026 21:54
@kubernetes-prow
kubernetes-prow Bot requested a review from tg123 July 15, 2026 21:54
@kubernetes-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: brendandburns

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository devcontainer to support building/testing projects targeting net9.0 and net10.0 by switching from a fixed .NET 8 SDK image to a Dockerfile-based devcontainer build that includes .NET 10 and installs .NET 9 side-by-side.

Changes:

  • Add a .devcontainer/Dockerfile based on mcr.microsoft.com/dotnet/sdk:10.0 and install the .NET 9 SDK via dotnet-install.sh.
  • Update .devcontainer/devcontainer.json to use "build" (Dockerfile) instead of a fixed "image".
Show a summary per file
File Description
.devcontainer/Dockerfile Introduces a .NET 10-based devcontainer image and installs the .NET 9 SDK side-by-side.
.devcontainer/devcontainer.json Switches devcontainer configuration from an image reference to a Dockerfile build.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment thread .devcontainer/Dockerfile Outdated
Comment thread .devcontainer/devcontainer.json Outdated
Copilot AI review requested due to automatic review settings July 15, 2026 21:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread .devcontainer/Dockerfile
Comment on lines +3 to +11
# Install .NET 9 SDK side-by-side so the container supports both net9.0 and net10.0 builds.
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends curl ca-certificates; \
rm -rf /var/lib/apt/lists/*; \
curl -fsSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh; \
chmod +x /tmp/dotnet-install.sh; \
/tmp/dotnet-install.sh --channel 9.0 --quality ga --install-dir /usr/share/dotnet --skip-non-versioned-files; \
rm -f /tmp/dotnet-install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants