Commit 441a56a
authored
add devcontainer.json config for .net 6 -Codespaces (#2149)
## Why this change?
Enhance the PR review experience in GitHub Codespaces. Currently, review
productivity is hindered because the default Codespaces container only
has .NET 8. (While there is work to add .net 8 to dab, this fix enables
.net6 (current) compat in codespaces).
Pros:
- Everything that is needed is pre-installed in container:
- .NET 6 SDK -> allows you to "view definition" and other symbols with
intellisense
- C# Dev Kit VsCode extension -> view solution , run tests etc.
- No need to update this file when DAB is updated to build against .NET
8.
Cons:
- Slower to load CodeSpace because container needs to build (1-3
minutes), but once built, easy access for future PR iterations.
## What is this change?
- Docs used:
-
https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/setting-up-your-dotnet-project-for-codespaces
- https://github.com/devcontainers/features/tree/main/src/dotnet
- Adds folder `.devcontainer`
- Adds file `devcontainer.json` which
- Uses .net 8 sdk image for future compatibility with DAB changes in
#2140 .
- Installs .net 6 SDK, Runtime, and ASPNETCORE
- Installs C#devKit Vscode extension
## Actual experience
1. When loading codespaces you'll see this container setup after
selecting which codespace to create or reuse.

2. Auto install required extensions to make intellisense work:

3. Solution explorer works

4. Working intellisense!
1 parent 812c142 commit 441a56a
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments