Skip to content

Commit 5699365

Browse files
enable devcontainer (#5249)
* enable devcontainer * Use new path for ManagedIdentityTokenRevocation
1 parent 5f6a573 commit 5699365

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# See here for image contents: https://github.com/devcontainers/images/blob/main/src/dotnet/.devcontainer/Dockerfile
2+
# Example of using a preview version: mcr.microsoft.com/devcontainers/dotnet:10.0-preview
3+
4+
FROM mcr.microsoft.com/vscode/devcontainers/dotnet:latest

.devcontainer/devcontainer.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/devcontainers/images/tree/main/src/dotnet
3+
{
4+
"name": "C# (.NET)",
5+
"build": {
6+
"dockerfile": "Dockerfile"
7+
},
8+
// Add the IDs of extensions you want installed when the container is created.
9+
"customizations": {
10+
"vscode": {
11+
"extensions": [
12+
"ms-dotnettools.csdevkit"
13+
],
14+
"settings": {
15+
"dotnet.defaultSolution": "LibsAndSamples.sdk.slnf",
16+
"omnisharp.enableRoslynAnalyzers": true,
17+
"omnisharp.enableEditorConfigSupport": true,
18+
"omnisharp.enableImportCompletion": true
19+
}
20+
}
21+
},
22+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
23+
"remoteUser": "vscode",
24+
"hostRequirements": {
25+
"cpus": 4
26+
},
27+
"features": {
28+
"ghcr.io/devcontainers/features/dotnet:2": {
29+
// This needs to line up with global.json
30+
"version": "8.0.404"
31+
}
32+
}
33+
}

LibsAndSamples.sdk.slnf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"solution": {
3+
"path": "LibsAndSamples.sln",
4+
"projects": [
5+
"src/client/Microsoft.Identity.Client/Microsoft.Identity.Client.csproj",
6+
"src/client/Microsoft.Identity.Client.Broker/Microsoft.Identity.Client.Broker.csproj",
7+
"src/client/Microsoft.Identity.Client.Extensions.Msal/Microsoft.Identity.Client.Extensions.Msal.csproj",
8+
"tests/Microsoft.Identity.Test.Performance/Microsoft.Identity.Test.Performance.csproj",
9+
"tests/Microsoft.Identity.Test.Integration.netcore/Microsoft.Identity.Test.Integration.NetCore.csproj",
10+
"tests/CacheCompat/CommonCache.Test.Unit/CommonCache.Test.Unit.csproj",
11+
"tests/Microsoft.Identity.Test.LabInfrastructure/Microsoft.Identity.Test.LabInfrastructure.csproj",
12+
"tests/CacheCompat/CommonCache.Test.MsalV3/CommonCache.Test.MsalV3.csproj",
13+
"tests/CacheCompat/CommonCache.Test.MsalJava/CommonCache.Test.MsalJava.csproj",
14+
"tests/CacheCompat/CommonCache.Test.Common/CommonCache.Test.Common.csproj",
15+
"tests/devapps/Managed Identity apps/MSIHelperService/MSIHelperService.csproj",
16+
"tests/devapps/Managed Identity apps/ManagedIdentityAppVM/ManagedIdentityAppVM.csproj",
17+
"tests/devapps/Managed Identity apps/ManagedIdentityWebApi/ManagedIdentityWebApi.csproj",
18+
"tests/devapps/Managed Identity apps/ManagedIdentityTokenRevocation/ManagedIdentityTokenRevocation.csproj",
19+
"tests/devapps/WAM/NetWSLWam/test.csproj",
20+
]
21+
}
22+
}

0 commit comments

Comments
 (0)