Skip to content

Commit

Permalink
Fix devcontainer post attach command
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Mangel committed Sep 28, 2023
1 parent b221135 commit c46259a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@
"FABLE_NUGET_KEY": "${localEnv:FABLE_NUGET_KEY}"
},

"postAttachCommand": "dotnet tool restore"
// Restore the dotnet tools when the container is attached
// This makes fanomas available directly without having the user needing to
// run `dotnet tool restore` or build the project once
"postAttachCommand": "/bin/zsh -c 'source ~/.zshrc && dotnet tool restore'"

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

Expand Down

0 comments on commit c46259a

Please sign in to comment.