From b4e6454389fd94ca0e8269bc94fbacecbc409c69 Mon Sep 17 00:00:00 2001 From: mailaenderli Date: Mon, 30 Mar 2026 14:37:00 +0000 Subject: [PATCH 1/2] fix(dotnet): add config after sdks --- features/src/dotnet/installer.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/features/src/dotnet/installer.go b/features/src/dotnet/installer.go index 0fbc172..a868fcc 100644 --- a/features/src/dotnet/installer.go +++ b/features/src/dotnet/installer.go @@ -85,12 +85,6 @@ func runMain() error { } // Create the feature feature := installer.NewFeature(".NET", true) - if *nugetConfigPath != "" { - feature.AddComponents(&nugetConfigComponent{ - ComponentBase: installer.NewComponentBase("Nuget Config", installer.VERSION_IRRELEVANT), - NugetConfigPath: *nugetConfigPath, - }) - } // add sdks for _, sdkVersion := range allSdks { component := &sdkComponent{ @@ -118,6 +112,13 @@ func runMain() error { } feature.AddComponents(component) } + // nuget config + if *nugetConfigPath != "" { + feature.AddComponents(&nugetConfigComponent{ + ComponentBase: installer.NewComponentBase("Nuget Config", installer.VERSION_IRRELEVANT), + NugetConfigPath: *nugetConfigPath, + }) + } // workloads if len(*workloads) > 0 { feature.AddComponents(&workloadComponent{ From 27a3cf2253c110352524e5c9727d4685d5f8c8b3 Mon Sep 17 00:00:00 2001 From: mailaenderli Date: Mon, 30 Mar 2026 15:25:17 +0000 Subject: [PATCH 2/2] fix: add dummy config to dotnet test --- features/test/dotnet/scenarios.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/test/dotnet/scenarios.json b/features/test/dotnet/scenarios.json index d8ea22d..4deeb20 100644 --- a/features/test/dotnet/scenarios.json +++ b/features/test/dotnet/scenarios.json @@ -8,7 +8,8 @@ }, "features": { "./dotnet": { - "version": "8.0" + "version": "8.0", + "nugetConfigPath": "https://raw.githubusercontent.com/postfinance/devcontainer-features/refs/heads/main/override-all.env" } } },