-
-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
35965b8
commit ef46395
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# [Choice] .NET version: 7.0, 7.0-bullseye-slim, 7.0-jammy, 6.0, 6.0-bullseye-slim, 6.0-jammy, 6.0-focal | ||
ARG VARIANT="7.0-jammy" | ||
FROM mcr.microsoft.com/dotnet/sdk:${VARIANT} | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "DevContainer for .NET", | ||
|
||
"build": { | ||
"dockerfile": "./Dockerfile", | ||
"context": ".", | ||
"args": { | ||
// version: 7.0, 7.0-bullseye-slim, 7.0-jammy, 6.0, 6.0-bullseye-slim, 6.0-jammy, 6.0-focal | ||
"VARIANT": "7.0" | ||
} | ||
}, | ||
|
||
"features": { | ||
// GitHub CLI | ||
"ghcr.io/devcontainers/features/github-cli:1": { | ||
"version": "latest" | ||
}, | ||
|
||
// Install common utilities | ||
"ghcr.io/devcontainers/features/common-utils:1": { | ||
"installZsh": true, | ||
"installOhMyZsh": true, | ||
"upgradePackages": true, | ||
"username": "vscode", | ||
"uid": "1000", | ||
"gid": "1000" | ||
} | ||
}, | ||
|
||
"overrideFeatureInstallOrder": [ | ||
"ghcr.io/devcontainers/features/common-utils" | ||
], | ||
|
||
// Configure tool-specific properties. | ||
"customizations": { | ||
// Configure properties specific to VS Code. | ||
"vscode": { | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-dotnettools.csharp", | ||
"ms-vscode.PowerShell", | ||
"VisualStudioExptTeam.vscodeintellicode" | ||
], | ||
"settings": { | ||
} | ||
} | ||
}, | ||
|
||
// Uncomment if you want to use bash in 'postCreateCommand' after the container is created | ||
"postCreateCommand": "/bin/bash ./.devcontainer/post-create.sh > ~/post-create.log", | ||
|
||
// Uncomment if you want to connect other than 'root'. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## Restore .NET packages and build the default solution | ||
dotnet restore |