diff --git a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs b/src/Tests/Microsoft.NET.TestFramework/TestContext.cs index dba9af7325c2..cd7f919b5081 100644 --- a/src/Tests/Microsoft.NET.TestFramework/TestContext.cs +++ b/src/Tests/Microsoft.NET.TestFramework/TestContext.cs @@ -169,9 +169,9 @@ public static void Initialize(TestCommandLine commandLine) } else if (runAsTool) { - testContext.NuGetFallbackFolder = Path.Combine(testContext.TestAssetsDirectory, ".nuget", "NuGetFallbackFolder"); - testContext.NuGetExePath = Path.Combine(testContext.TestAssetsDirectory, ".nuget", $"nuget{Constants.ExeSuffix}"); - testContext.NuGetCachePath = Path.Combine(testContext.TestAssetsDirectory, ".nuget", "packages"); + testContext.NuGetFallbackFolder = Path.Combine(testContext.TestExecutionDirectory, ".nuget", "NuGetFallbackFolder"); + testContext.NuGetExePath = Path.Combine(testContext.TestExecutionDirectory, ".nuget", $"nuget{Constants.ExeSuffix}"); + testContext.NuGetCachePath = Path.Combine(testContext.TestExecutionDirectory, ".nuget", "packages"); var testPackages = Path.Combine(testContext.TestExecutionDirectory, "Testpackages"); if (Directory.Exists(testPackages))