openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
.devcontainer/devcontainer.json
40lines · modecode
| 1 | { |
| 2 | "name": "OpenAI .NET (Dev Container)", |
| 3 | "image": "mcr.microsoft.com/devcontainers/universal:5", |
| 4 | "remoteUser": "codespace", |
| 5 | "updateRemoteUserUID": false, |
| 6 | "overrideCommand": false, |
| 7 | "workspaceMount": "source=${localWorkspaceFolder},target=/home/codespace/workspace,type=bind,consistency=cached", |
| 8 | "workspaceFolder": "/home/codespace/workspace", |
| 9 | "remoteEnv": { |
| 10 | "PATH": "${containerEnv:PATH}:${containerEnv:HOME}/.dotnet/tools" |
| 11 | }, |
| 12 | "containerEnv": { |
| 13 | "CLIENTMODEL_TEST_MODE": "Playback", |
| 14 | "CLIENTMODEL_DISABLE_AUTO_RECORDING": "true" |
| 15 | }, |
| 16 | "features": { |
| 17 | "ghcr.io/devcontainers/features/dotnet:2": { |
| 18 | "version": "10.0" |
| 19 | }, |
| 20 | "ghcr.io/devcontainers/features/node:1": { |
| 21 | "version": "lts" |
| 22 | }, |
| 23 | "ghcr.io/devcontainers/features/powershell:1": {} |
| 24 | }, |
| 25 | |
| 26 | "customizations": { |
| 27 | "vscode": { |
| 28 | "settings": { |
| 29 | "terminal.integrated.defaultProfile.linux": "bash" |
| 30 | }, |
| 31 | "extensions": [ |
| 32 | "GitHub.vscode-pull-request-github", |
| 33 | "ms-dotnettools.csharp", |
| 34 | "ms-dotnettools.csdevkit" |
| 35 | ] |
| 36 | } |
| 37 | }, |
| 38 | |
| 39 | "postCreateCommand": "dotnet tool restore && dotnet --version && node --version && pwsh -NoLogo -NoProfile -Command '$PSVersionTable.PSVersion' && dotnet restore OpenAI.slnx" |
| 40 | } |
| 41 | |