зеркало из https://github.com/mono/SkiaSharp.git
43 строки
1.4 KiB
JSON
43 строки
1.4 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/dotnet
|
|
{
|
|
"name": ".NET / C# Development",
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
"image": "mcr.microsoft.com/devcontainers/dotnet:dev-7.0",
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/dotnet:2": "latest",
|
|
},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [5000, 5001],
|
|
// "portsAttributes": {
|
|
// "5001": {
|
|
// "protocol": "https"
|
|
// }
|
|
// }
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
"postCreateCommand": {
|
|
"packages": ".devcontainer/packages.sh",
|
|
"native": "dotnet tool restore && dotnet cake --target externals-download",
|
|
"tests": "dotnet build tests/SkiaSharp.Tests.Console.sln",
|
|
},
|
|
|
|
// Configure tool-specific properties.
|
|
"customizations": {
|
|
// Configure properties specific to VS Code.
|
|
"vscode": {
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {},
|
|
"extensions": [
|
|
"ms-dotnettools.csdevkit",
|
|
],
|
|
}
|
|
},
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "root"
|
|
}
|