mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
* Add initial codespaces support for dotnet/runtime * Enable codespaces-prebuild
36 lines
1.2 KiB
JSON
36 lines
1.2 KiB
JSON
// 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.192.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",
|
|
}
|
|
},
|
|
|
|
"settings": {
|
|
// Loading projects on demand is better for larger codebases
|
|
"omnisharp.enableMsBuildLoadProjectsOnDemand": true
|
|
},
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"ms-dotnettools.csharp"
|
|
],
|
|
|
|
// Use 'onCreateCommand' to run pre-build commands inside the codespace
|
|
"onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/scripts/onCreateCommand.sh",
|
|
|
|
// Add the locally installed dotnet to the path to ensure that it is activated
|
|
// This allows developers to just use 'dotnet build' on the command-line, and the local dotnet version will be used.
|
|
"remoteEnv": {
|
|
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
|
|
"DOTNET_MULTILEVEL_LOOKUP": "0"
|
|
},
|
|
|
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
"remoteUser": "vscode"
|
|
}
|