Skip to content

Commit fb55c4c

Browse files
committed
add necessary customizations
1 parent 987957b commit fb55c4c

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

src/dotnetaspire/devcontainer-feature.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@
1616
"description": "Select or enter a .NET Aspire version. Use 'latest' for the latest supported version, '9.0' for the 9.0 version, 'X.Y' or 'X.Y.Z' for a specific version, or 'latest-daily' for the latest unsupported build."
1717
},
1818
},
19+
"customizations": {
20+
"vscode": {
21+
"extensions": [
22+
"ms-dotnettools.csdevkit",
23+
"ms-azuretools.vscode-bicep",
24+
"GitHub.copilot-chat",
25+
"GitHub.copilot"
26+
],
27+
"settings": {
28+
"remote.autoForwardPorts": true,
29+
"remote.autoForwardPortsSource": "hybrid",
30+
"remote.otherPortsAttributes": {
31+
"onAutoForward": "ignore"
32+
}
33+
}
34+
}
35+
},
1936
"dependsOn": {
2037
"ghcr.io/devcontainers/features/dotnet": {
2138
"version": "8.0",

src/dotnetaspire/install.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,10 @@ else
4646
dotnet new install Aspire.ProjectTemplates::*-* --force
4747
fi
4848

49+
# Currently the dotnet 'feature' does not run this command to trust the dev certs. Rather than do that for everyone that uses
50+
# the dotnet feature, do it here.
51+
dotnet dev-certs https --trust
52+
echo ###############
53+
dotnet dev-certs https --check --trust | grep "certificate"
54+
4955
echo "... done activating feature '.NET Aspire' version: $VERSION"

test/dotnetaspire/scenarios.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

test/dotnetaspire/test.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ test "$($DOTNET_ROOT/dotnet --info | grep '9.0.')"
2626
check "dotnetaspire templates are installed" \
2727
test "$DOTNET_ROOT/dotnet new aspire"
2828

29+
check "https test cert is trusted" \
30+
test "$($DOTNET_ROOT/dotnet dev-certs https --check --trust | grep "certificate")"
31+
2932
# There isn't currently a good way to check what version of the templates was installed.
3033

3134
# Report results

0 commit comments

Comments
 (0)