File tree 1 file changed +6
-4
lines changed
src/ScriptModuleRepositoryTemplate/TemplateRepoFiles/_.devcontainer
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
{
4
4
"name" : " PowerShell" ,
5
5
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6
- "image" : " mcr.microsoft.com/powershell:lts-debian-11 " ,
6
+ "image" : " mcr.microsoft.com/dotnet/sdk:9.0 " ,
7
7
"features" : {
8
8
"ghcr.io/devcontainers/features/common-utils:2" : {
9
9
"installZsh" : " true" ,
10
10
"username" : " vscode" ,
11
11
"upgradePackages" : " false" ,
12
12
"nonFreePackages" : " true"
13
- }
13
+ }// , // Uncomment this line and the one below to install the dotnet CLI.
14
+ // "ghcr.io/devcontainers/features/dotnet:2": "latest" // Installs the dotnet CLI.
14
15
},
15
16
16
- // Set VS Code's default shell to PowerShell.
17
- "postCreateCommand" : " sudo chsh vscode -s \" $(which pwsh)\" " ,
17
+ // Set pwsh as the default shell for the devcontainer, install required PowerShell modules, and install NPM and CSpell.
18
+ // If you do not plan to use CSpell, you can remove everything after and including 'sudo apt update'.
19
+ "postCreateCommand" : " sudo chsh vscode -s \" $(which pwsh)\" ; pwsh -c \" Install-Module Pester -Force\" ; pwsh -c \" Install-Module PSScriptAnalyzer -Force\" ; sudo apt update; sudo DEBIAN_FRONTEND=noninteractive apt install -y npm; npm install cspell" ,
18
20
19
21
// Configure tool-specific properties.
20
22
"customizations" : {
You can’t perform that action at this time.
0 commit comments