Skip to content

Commit 0fa9207

Browse files
committed
feat: Add Dev Containers configuration
1 parent 6fc513c commit 0fa9207

3 files changed

Lines changed: 279 additions & 31 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/base:jammy",
3+
"containerEnv": {
4+
"DOTNET_CLI_TELEMETRY_OPTOUT": "true",
5+
"DOTNET_NOLOGO": "true",
6+
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "true",
7+
"DOTNET_USE_POLLING_FILE_WATCHER": "true",
8+
"NUGET_XMLDOC_MODE": "skip"
9+
},
10+
"features": {
11+
"ghcr.io/devcontainers/features/git:1": {},
12+
"ghcr.io/devcontainers/features/git-lfs:1": {},
13+
"ghcr.io/devcontainers/features/docker-in-docker:2": {
14+
"moby": true
15+
},
16+
"ghcr.io/devcontainers/features/dotnet:2.3.0": {
17+
"version": "9.0",
18+
"installUsingApt": false
19+
}
20+
},
21+
"customizations": {
22+
"vscode": {
23+
"extensions": [
24+
"ms-azuretools.vscode-docker",
25+
"ms-dotnettools.csdevkit"
26+
],
27+
"settings": {
28+
"dotnet.defaultSolution": "${containerWorkspaceFolder}/Docker.DotNet.sln"
29+
}
30+
}
31+
},
32+
"postCreateCommand": "git config --global --add safe.directory ${containerWorkspaceFolder} && git lfs checkout",
33+
"postStartCommand": ["dotnet", "build", "${containerWorkspaceFolder}/Docker.DotNet.sln", "/consoleLoggerParameters:NoSummary", "/property:GenerateFullPaths=true", "/property:Configuration=Debug", "/property:Platform=Any CPU"]
34+
}

0 commit comments

Comments
 (0)