Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 235482b

Browse files
committed
Fixing an issue in the RepoDirectoriesProvider where it assumed that the only directory under SDK was the SDK directories. This is no longer true now that we moved the NuGet fallback folder there.
1 parent 3299513 commit 235482b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Microsoft.DotNet.Tools.Tests.Utilities/RepoDirectoriesProvider.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ public RepoDirectoriesProvider(
9898
_builtDotnet = builtDotnet ?? Path.Combine(_artifacts, "intermediate", "sharedFrameworkPublish");
9999
_nugetPackages = nugetPackages ?? Path.Combine(RepoRoot, ".nuget", "packages");
100100
_pjDotnet = pjDotnet ?? GetPjDotnetPath();
101-
_stage2Sdk = Directory.EnumerateDirectories(Path.Combine(_artifacts, "stage2", "sdk")).First();
101+
_stage2Sdk = Directory
102+
.EnumerateDirectories(Path.Combine(_artifacts, "stage2", "sdk"))
103+
.First(d => !d.Contains("NuGetFallbackFolder"));
104+
102105
_stage2WithBackwardsCompatibleRuntimesDirectory =
103106
Path.Combine(_artifacts, "stage2WithBackwardsCompatibleRuntimes");
104107
_testPackages = Path.Combine(RepoRoot, "artifacts", "testpackages", "packages");

0 commit comments

Comments
 (0)