|
1 | | -// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
2 | | -// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet |
3 | 1 | { |
4 | | - "name": "C# (.NET)", |
5 | | - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
6 | | - "image": "mcr.microsoft.com/devcontainers/dotnet:0-6.0", |
7 | | - "features": { |
8 | | - "ghcr.io/devcontainers/features/dotnet:1": { |
9 | | - "installUsingApt": true, |
10 | | - "version": "6.0" |
11 | | - }, |
12 | | - "ghcr.io/devcontainers/features/ruby:1": { |
13 | | - "version": "3.1" |
| 2 | + "name": "C# (.NET) - Ubuntu with Mono", |
| 3 | + "image": "mcr.microsoft.com/devcontainers/dotnet:1-8.0-jammy", |
| 4 | + "onCreateCommand": "git submodule update --init --recursive", |
| 5 | + "postAttachCommand": "bash .devcontainer/install-dependencies.sh", |
| 6 | + "customizations": { |
| 7 | + "vscode": { |
| 8 | + "extensions": [ |
| 9 | + "ms-dotnettools.csdevkit" |
| 10 | + ], |
| 11 | + "settings": { |
| 12 | + "dotnet.server.useOmnisharp": false, |
| 13 | + "files.watcherExclude": { |
| 14 | + "**/bin/**": true, |
| 15 | + "**/obj/**": true, |
| 16 | + "**/.git/**": true, |
| 17 | + "**/node_modules/**": true, |
| 18 | + "**/.vs/**": true |
| 19 | + }, |
| 20 | + "search.exclude": { |
| 21 | + "**/bin": true, |
| 22 | + "**/obj": true, |
| 23 | + "**/node_modules": true |
| 24 | + }, |
| 25 | + "files.eol": "\n" |
| 26 | + } |
14 | 27 | } |
15 | 28 | }, |
16 | | - // Features to add to the dev container. More info: https://containers.dev/features. |
17 | | - // "features": {}, |
18 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
19 | | - // "forwardPorts": [5000, 5001], |
20 | | - // "portsAttributes": { |
21 | | - // "5001": { |
22 | | - // "protocol": "https" |
23 | | - // } |
24 | | - // } |
25 | | - // Use 'postCreateCommand' to run commands after the container is created. |
26 | | - // Used for downloading all submodules and restoring dotnet tools as a part of dotnet CLI |
27 | | - "postCreateCommand": "git submodule init && git submodule update && dotnet tool restore" |
28 | | - // Configure tool-specific properties. |
29 | | - // "customizations": {}, |
30 | | - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
31 | | - // "remoteUser": "root" |
| 29 | + "containerEnv": { |
| 30 | + "DOTNET_CLI_TELEMETRY_OPTOUT": "1", |
| 31 | + "DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "1", |
| 32 | + "DOTNET_NOLOGO": "1", |
| 33 | + "NUGET_XMLDOC_MODE": "skip", |
| 34 | + "DOTNET_CLI_UI_LANGUAGE": "en", |
| 35 | + "NUGET_PACKAGES": "${containerWorkspaceFolder}/.nuget/packages" |
| 36 | + }, |
| 37 | + "remoteEnv": { |
| 38 | + "PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/.dotnet/tools" |
| 39 | + }, |
| 40 | + "mounts": [ |
| 41 | + "source=ably-dotnet-nuget-cache,target=${containerWorkspaceFolder}/.nuget/packages,type=volume" |
| 42 | + ] |
32 | 43 | } |
0 commit comments