Skip to content

Commit 2102eff

Browse files
author
Luca Piccioni
committed
DevContainers.
1 parent c35bc2b commit 2102eff

4 files changed

Lines changed: 72 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
ARG VARIANT=8.0-jammy
2+
FROM mcr.microsoft.com/devcontainers/dotnet:${VARIANT}
3+
4+
# Install Mono for .NET Framework support
5+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6+
&& apt-get -y install --no-install-recommends mono-complete \
7+
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "C# (.NET 6.0 - Ubuntu 22.04)",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"context": "..",
6+
"args": {
7+
"VARIANT": "6.0-jammy"
8+
}
9+
},
10+
"features": {
11+
"ghcr.io/devcontainers/features/common-utils:2": {},
12+
"ghcr.io/devcontainers/features/git:1": {}
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"ms-dotnettools.csharp",
18+
"ms-dotnettools.csdevkit"
19+
]
20+
}
21+
}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "C# (.NET 8.0 - Ubuntu 20.04)",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"context": "..",
6+
"args": {
7+
"VARIANT": "8.0-focal"
8+
}
9+
},
10+
"features": {
11+
"ghcr.io/devcontainers/features/common-utils:2": {},
12+
"ghcr.io/devcontainers/features/git:1": {}
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"ms-dotnettools.csharp",
18+
"ms-dotnettools.csdevkit"
19+
]
20+
}
21+
}
22+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "C# (.NET 8.0 - Ubuntu 22.04)",
3+
"build": {
4+
"dockerfile": "../Dockerfile",
5+
"context": "..",
6+
"args": {
7+
"VARIANT": "8.0-jammy"
8+
}
9+
},
10+
"features": {
11+
"ghcr.io/devcontainers/features/common-utils:2": {},
12+
"ghcr.io/devcontainers/features/git:1": {}
13+
},
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"ms-dotnettools.csdevkit"
18+
]
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)