|
1 | | -// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
2 | | -// https://github.com/microsoft/vscode-dev-containers/tree/v0.166.1/containers/dotnet |
3 | 1 | { |
4 | 2 | "name": "C# (.NET)", |
5 | 3 | "build": { |
6 | 4 | "dockerfile": "Dockerfile", |
7 | 5 | "args": { |
8 | | - "VARIANT": "5.0", |
| 6 | + "SDK_VERSION": "8.0", |
9 | 7 | } |
10 | 8 | }, |
11 | | - |
12 | | - // Set *default* container specific settings.json values on container create. |
13 | | - "settings": { |
14 | | - "terminal.integrated.shell.linux": "/bin/bash" |
15 | | - }, |
16 | | - |
17 | | - // Add the IDs of extensions you want installed when the container is created. |
18 | | - "extensions": [ |
19 | | - "ms-dotnettools.csharp" |
20 | | - ], |
21 | | - |
22 | | - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
23 | | - // "forwardPorts": [5000, 5001], |
24 | | - |
25 | | - // [Optional] To reuse of your local HTTPS dev cert: |
26 | | - // |
27 | | - // 1. Export it locally using this command: |
28 | | - // * Windows PowerShell: |
29 | | - // dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere" |
30 | | - // * macOS/Linux terminal: |
31 | | - // dotnet dev-certs https --trust; dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere" |
32 | | - // |
33 | | - // 2. Uncomment these 'remoteEnv' lines: |
34 | | - // "remoteEnv": { |
35 | | - // "ASPNETCORE_Kestrel__Certificates__Default__Password": "SecurePwdGoesHere", |
36 | | - // "ASPNETCORE_Kestrel__Certificates__Default__Path": "/home/vscode/.aspnet/https/aspnetapp.pfx", |
37 | | - // }, |
38 | | - // |
39 | | - // 3. Do one of the following depending on your scenario: |
40 | | - // * When using GitHub Codespaces and/or Remote - Containers: |
41 | | - // 1. Start the container |
42 | | - // 2. Drag ~/.aspnet/https/aspnetapp.pfx into the root of the file explorer |
43 | | - // 3. Open a terminal in VS Code and run "mkdir -p /home/vscode/.aspnet/https && mv aspnetapp.pfx /home/vscode/.aspnet/https" |
44 | | - // |
45 | | - // * If only using Remote - Containers with a local container, uncomment this line instead: |
46 | | - // "mounts": [ "source=${env:HOME}${env:USERPROFILE}/.aspnet/https,target=/home/vscode/.aspnet/https,type=bind" ], |
47 | | - |
48 | | - // Use 'postCreateCommand' to run commands after the container is created. |
49 | | - // "postCreateCommand": "dotnet restore", |
50 | | - |
51 | | - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
52 | | - "remoteUser": "vscode" |
| 9 | + "customizations": { |
| 10 | + "vscode": { |
| 11 | + "extensions": [ |
| 12 | + "ms-dotnettools.csdevkit" |
| 13 | + ] |
| 14 | + } |
| 15 | + } |
53 | 16 | } |
0 commit comments