Skip to content

Commit 0668503

Browse files
authored
More setup
1 parent 4ddedf5 commit 0668503

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
// Add the IDs of extensions you want installed when the container is created.
2222
"extensions": [
2323
"GitHub.vscode-pull-request-github",
24-
"ms-dotnettools.csharp"
24+
"ms-dotnettools.csharp",
25+
"eamodio.gitlens"
2526
],
2627

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

30-
"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"
31+
"postCreateCommand": "bash .devcontainer/init.sh"
3132
}

.devcontainer/init.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
### Create _dotnetsdk
2+
echo 'Creating symlink for embedded sdk...'
3+
ln -s /home/codespace/.dotnet/sdk/ _dotnetsdk
4+
echo .6.0.100 >> _dotnetsdk/6.0.100/.6.0.100
5+
ln -s /home/codespace/.dotnet/dotnet _dotnetsdk/6.0.100/dotnet
6+
7+
### Restore
8+
dotnet restore src/Runner.Listener &
9+
dotnet restore src/Runner.Common &
10+
dotnet restore src/Runner.Sdk &
11+
dotnet restore src/Runner.Worker &
12+
dotnet restore src/Runner.Service &
13+
dotnet restore src/Test &

0 commit comments

Comments
 (0)