Skip to content

Commit

Permalink
Add .NET 9 to devcontainer
Browse files Browse the repository at this point in the history
Install the .NET 9 SDK in the devcontainer.
  • Loading branch information
martincostello committed Sep 21, 2024
1 parent 9f620d4 commit c452545
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ tar xzvf ./*.tar.gz >/dev/null 2>&1
sudo mv dependabot /usr/local/bin
rm ./*.tar.gz

# The image comes loaded with 8.0 preview SDK, but we need a stable 7.0 runtime for running tests
# The image comes loaded with 8.0 SDK, but we need the 7.0 and 9.0 runtimes for running tests
sudo wget https://dot.net/v1/dotnet-install.sh
sudo chmod +x dotnet-install.sh
sudo ./dotnet-install.sh -c 7.0 --runtime dotnet --install-dir /usr/local/dotnet/current
sudo ./dotnet-install.sh -c 7.0 --runtime dotnet --install-dir /usr/share/dotnet/shared
sudo ./dotnet-install.sh -c 9.0 --install-dir /usr/share/dotnet
sudo rm ./dotnet-install.sh

echo "export LOCAL_GITHUB_ACCESS_TOKEN=$GITHUB_TOKEN" >> ~/.bashrc

0 comments on commit c452545

Please sign in to comment.