|
|
@@ -0,0 +1,34 @@
|
|
|
+// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
|
+// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/dotnet
|
|
|
+{
|
|
|
+ "name": "C# (.NET)",
|
|
|
+ "build": {
|
|
|
+ "dockerfile": "Dockerfile",
|
|
|
+ "args": {
|
|
|
+ // Update 'VARIANT' to pick a .NET Core version: 2.1, 3.1, 5.0
|
|
|
+ "VARIANT": "5.0",
|
|
|
+ // Options
|
|
|
+ "INSTALL_NODE": "true",
|
|
|
+ "NODE_VERSION": "lts/*"
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // Add the IDs of extensions you want installed when the container is created.
|
|
|
+ "extensions": [
|
|
|
+ "ms-dotnettools.csharp"
|
|
|
+ ],
|
|
|
+
|
|
|
+ // Use 'postCreateCommand' to run commands after the container is created.
|
|
|
+ "onCreateCommand": "bash -i ${containerWorkspaceFolder}/.devcontainer/scripts/container-creation.sh",
|
|
|
+
|
|
|
+ // Add the locally installed dotnet to the path to ensure that it is activated
|
|
|
+ // This is needed so that things like the C# extension can resolve the correct SDK version
|
|
|
+ "remoteEnv": {
|
|
|
+ "PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
|
|
|
+ "DOTNET_MULTILEVEL_LOOKUP": "0",
|
|
|
+ "TARGET": "net6.0"
|
|
|
+ },
|
|
|
+
|
|
|
+ // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
|
+ "remoteUser": "vscode"
|
|
|
+}
|