3 writes to NuGetCachePath
Microsoft.NET.TestFramework (3)
TestContext.cs (3)
238testContext.NuGetCachePath = Path.Combine(artifactsDir, ".nuget", "packages"); 246testContext.NuGetCachePath = Path.Combine(testContext.TestExecutionDirectory, ".nuget", "packages"); 261testContext.NuGetCachePath = Path.Combine(nugetFolder, "packages");
26 references to NuGetCachePath
dotnet.Tests (2)
CommandTests\Build\GivenDotnetBuildBuildsCsproj.cs (1)
381TestContext.Current.NuGetCachePath,
CommandTests\Run\RunFileTests.cs (1)
2226string nuGetCachePath = NormalizePath(TestContext.Current.NuGetCachePath!);
Microsoft.NET.Build.Tests (8)
DeleteNuGetArtifactsFixture.cs (1)
41foreach (string dir in Directory.EnumerateDirectories(TestContext.Current.NuGetCachePath, ConstantStringValues.DependencyDirectoryNamePrefix + "*"))
GivenThatWeWantDiagnosticsWhenPackageCannotBeFound.cs (2)
59TestContext.Current.NuGetCachePath, 65TestContext.Current.NuGetCachePath,
GivenThatWeWantToBuildADesktopLibrary.cs (1)
445correctHttpReference = Path.Combine(TestContext.Current.NuGetCachePath, "system.net.http", "4.3.2", "ref", "net46", "System.Net.Http.dll");
GivenThatWeWantToGenerateADepsFileForATool.cs (3)
96DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, toolProject.Name.ToLowerInvariant())); 97DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant())); 138string toolAssetsFilePath = Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant(), "1.0.0", toolProject.TargetFrameworks, "project.assets.json");
GivenThatWeWantToUseAnalyzers.cs (1)
349TestContext.Current.NuGetCachePath,
Microsoft.NET.Restore.Tests (5)
GivenThatWeWantToIgnoreObsoleteDotNetCliToolPackages.cs (1)
47string toolAssetsFilePath = Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant(), "99.99.99", toolProject.TargetFrameworks, "project.assets.json");
GivenThatWeWantToRestoreDotNetCliToolReference.cs (3)
53DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, toolProject.Name.ToLowerInvariant())); 54DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, ".tools", toolProject.Name.ToLowerInvariant())); 63var assetsJsonPath = Path.Combine(TestContext.Current.NuGetCachePath,
GivenThatWeWantToRestoreProjectsUsingNuGetConfigProperties.cs (1)
156DeleteFolder(Path.Combine(TestContext.Current.NuGetCachePath, projectInNuGetFallbackFolder.Name.ToLowerInvariant()));
Microsoft.NET.Sdk.BlazorWebAssembly.Tests (4)
AspNetSdkBaselineTest.cs (4)
146GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, 242GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, 290GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, 297var template = Templatize(actual, ProjectDirectory.Path, GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, runtimeIdentifier);
Microsoft.NET.Sdk.StaticWebAssets.Tests (4)
AspNetSdkBaselineTest.cs (4)
146GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, 242GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, 290GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, 297var template = Templatize(actual, ProjectDirectory.Path, GetNuGetCachePath() ?? TestContext.Current.NuGetCachePath, runtimeIdentifier);
Microsoft.NET.TestFramework (3)
Commands\NuGetExeRestoreCommand.cs (1)
69PackagesDirectory ?? TestContext.Current.NuGetCachePath ?? string.Empty,
TestContext.cs (2)
118if(NuGetCachePath is not null) 120environment["NUGET_PACKAGES"] = NuGetCachePath;