Skip to content

Commit 987957b

Browse files
committed
add 9 and 8
1 parent c2b2772 commit 987957b

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/dotnetaspire/devcontainer-feature.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
},
1818
},
1919
"dependsOn": {
20-
// how to ensure the correct .NET version is installed? seems it would require using onCreateCommand
21-
// to write out a temporary devcontainer.json. For now, it's fixed at 9.0
22-
"ghcr.io/devcontainers/features/dotnet": "9.0"
20+
"ghcr.io/devcontainers/features/dotnet": {
21+
"version": "8.0",
22+
"additionalVersions": "9.0"
23+
}
2324
}
2425
}

test/dotnetaspire/test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ source dotnet_env.sh
1717
check "dotnet is installed in DOTNET_ROOT and execute permission is granted" \
1818
test -x "$DOTNET_ROOT/dotnet"
1919

20+
check "dotnet 8.0 is installed" \
21+
test "$($DOTNET_ROOT/dotnet --info | grep '8.0.')"
22+
23+
check "dotnet 9.0 is installed" \
24+
test "$($DOTNET_ROOT/dotnet --info | grep '9.0.')"
25+
2026
check "dotnetaspire templates are installed" \
2127
test "$DOTNET_ROOT/dotnet new aspire"
2228

0 commit comments

Comments
 (0)