From 8a4f8e371fcce0894ee2b99eb37434e8ac417360 Mon Sep 17 00:00:00 2001 From: Daniel Plaisted Date: Tue, 31 May 2022 13:44:18 -0700 Subject: [PATCH] Switch NuGet assets for tests as tools to be under the test execution directory. This will help avoid long path issues. --- src/Tests/Microsoft.NET.TestFramework/TestContext.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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))