Skip to content

Commit fbfef29

Browse files
authored
make devcontainer work with unpublished sdks (#18847)
1 parent ce61954 commit fbfef29

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
22
{
33
"name": "F#",
4-
"image": "mcr.microsoft.com/dotnet/sdk:10.0.100-preview.3",
4+
"image": "mcr.microsoft.com/dotnet/sdk:9.0.304",
55
"features": {
6-
"ghcr.io/devcontainers/features/common-utils:2.5.3": {},
7-
"ghcr.io/devcontainers/features/git:1.3.3": {},
6+
"ghcr.io/devcontainers/features/common-utils:2.5.4": {},
7+
"ghcr.io/devcontainers/features/git:1.3.4": {},
88
"ghcr.io/devcontainers/features/github-cli:1.0.14": {},
9-
"ghcr.io/devcontainers/features/dotnet:2.2.1": {}
9+
"ghcr.io/devcontainers/features/dotnet:2.3.0": {}
1010
},
1111
"hostRequirements": {
1212
"cpus": 2,
@@ -28,7 +28,8 @@
2828
}
2929
},
3030
"remoteEnv": {
31-
"TARGET": "net9.0"
31+
"FSHARPCORE_USE_PACKAGE": "false",
32+
"PATH": "${localWorkspaceFolder}/.dotnet:${containerEnv:PATH}"
3233
},
33-
"postCreateCommand": [ "dotnet", "build", "FSharp.Compiler.Service.sln"]
34+
"postCreateCommand": [ "bash", "-c", "eng/common/dotnet.sh && cp -r .dotnet/sdk/* /usr/share/dotnet/sdk && cp -r .dotnet/shared/Microsoft.NETCore.App/* /usr/share/dotnet/shared/Microsoft.NETCore.App" ]
3435
}

0 commit comments

Comments
 (0)