Skip to content

Commit

Permalink
More setup
Browse files Browse the repository at this point in the history
  • Loading branch information
fhammerl authored Mar 17, 2022
1 parent 4ddedf5 commit 0668503
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"GitHub.vscode-pull-request-github",
"ms-dotnettools.csharp"
"ms-dotnettools.csharp",
"eamodio.gitlens"
],

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

"postCreateCommand": "echo 'Creating symlink for embedded sdk...' && ln -s /home/codespace/.dotnet/sdk/ _dotnetsdk && echo .6.0.100 >> _dotnetsdk/6.0.100/.6.0.100 && ln -s /home/codespace/.dotnet/dotnet _dotnetsdk/6.0.100/dotnet"
"postCreateCommand": "bash .devcontainer/init.sh"
}
13 changes: 13 additions & 0 deletions .devcontainer/init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
### Create _dotnetsdk
echo 'Creating symlink for embedded sdk...'
ln -s /home/codespace/.dotnet/sdk/ _dotnetsdk
echo .6.0.100 >> _dotnetsdk/6.0.100/.6.0.100
ln -s /home/codespace/.dotnet/dotnet _dotnetsdk/6.0.100/dotnet

### Restore
dotnet restore src/Runner.Listener &
dotnet restore src/Runner.Common &
dotnet restore src/Runner.Sdk &
dotnet restore src/Runner.Worker &
dotnet restore src/Runner.Service &
dotnet restore src/Test &

0 comments on commit 0668503

Please sign in to comment.