Skip to content

Commit

Permalink
feat: add devcontainer support
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdotnet committed Jun 2, 2024
1 parent 4d15db2 commit 3c0b4e4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// 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": "C# (.NET)",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/dotnet/sdk:9.0-preview",
"features": {
"ghcr.io/devcontainers/features/dotnet:2": {
"version": "latest"
}
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"ms-dotnettools.csdevkit",
"yzhang.markdown-all-in-one",
"vscode-icons-team.vscode-icons",
"me-dutour-mathieu.vscode-github-actions"
]
}
},

"postCreateCommand": "dotnet dev-certs https --check --trust"

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/src/LinkDotNet.Blog.Web/bin/Debug/net8.0/LinkDotNet.Blog.Web.dll",
"program": "${workspaceFolder}/src/LinkDotNet.Blog.Web/bin/Debug/net9.0/LinkDotNet.Blog.Web.dll",
"args": [],
"cwd": "${workspaceFolder}/src/LinkDotNet.Blog.Web",
"stopAtEntry": false,
Expand Down

0 comments on commit 3c0b4e4

Please sign in to comment.