devcontainer.json 1.0 KB

123456789101112131415161718192021222324252627
  1. // For format details, see https://aka.ms/devcontainer.json.
  2. {
  3. "name": "dotnet",
  4. "image": "mcr.microsoft.com/devcontainers/base:debian",
  5. "customizations": {
  6. "vscode": {
  7. "extensions": [
  8. "ms-dotnettools.csdevkit",
  9. "EditorConfig.EditorConfig",
  10. "DavidAnson.vscode-markdownlint"
  11. ]
  12. }
  13. },
  14. // Use 'postCreateCommand' to run commands after the container is created.
  15. "postCreateCommand": "bash -i ${containerWorkspaceFolder}/.devcontainer/scripts/post-creation.sh",
  16. // Add the locally installed dotnet to the path to ensure that it is activated
  17. // This is needed so that things like the C# extension can resolve the correct SDK version
  18. "remoteEnv": {
  19. "PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
  20. "DOTNET_INSTALL_DIR": "${containerWorkspaceFolder}/.dotnet",
  21. "DOTNET_MULTILEVEL_LOOKUP": "0",
  22. "DOTNET_ROOT": "${containerWorkspaceFolder}/.dotnet",
  23. "DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR": "${containerWorkspaceFolder}/.dotnet",
  24. "NUGET_PACKAGES": "/home/vscode/.nuget/packages"
  25. }
  26. }