Skip to content

Commit 2f90ebe

Browse files
authored
Add .NET Dev Certs to DevContainer By Default (dotnet#36000)
* Add .NET Dev Certs to DevContainer By Default * Update .devcontainer/scripts/container-creation.sh
1 parent 68d3ff1 commit 2f90ebe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.devcontainer/scripts/container-creation.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ set -e
55
# GitHub doesn't pull in submodules by default when mounting
66
# the repo directory on the container so we do this post-create
77
git submodule update --init --recursive
8+
89
# Install SDK and tool dependencies before container starts
910
# Also run the full restore on the repo so that go-to definition
1011
# and other language features will be available in C# files
1112
./restore.sh
13+
14+
# Add .NET Dev Certs to environment to facilitate debugging.
15+
# Do **NOT** do this in a public base image as all images inheriting
16+
# from the base image would inherit these dev certs as well.
17+
dotnet dev-certs https
18+
1219
# The container creation script is executed in a new Bash instance
1320
# so we exit at the end to avoid the creation process lingering.
1421
exit

0 commit comments

Comments
 (0)