1 write to _tempDir
WorkloadBuildTasks (1)
InstallWorkloadFromArtifacts.cs (1)
64_tempDir = Path.Combine(IntermediateOutputPath ?? Path.GetTempPath(), $"workload-{Path.GetRandomFileName()}");
12 references to _tempDir
WorkloadBuildTasks (12)
InstallWorkloadFromArtifacts.cs (12)
65if (Directory.Exists(_tempDir)) 66Directory.Delete(_tempDir, recursive: true); 67Directory.CreateDirectory(_tempDir); 68_nugetCachePath = Path.Combine(_tempDir, "nuget-cache"); 71Log.LogMessage(MessageImportance.High, $"Using temporary directory {_tempDir} for installing workloads from artifacts."); 147if (!SkipTempDirectoryCleanup && !string.IsNullOrEmpty(_tempDir) && Directory.Exists(_tempDir)) 148Directory.Delete(_tempDir, recursive: true); 220string nugetConfigPath = Path.Combine(_tempDir, $"NuGet.{Path.GetRandomFileName()}.config"); 233$"workload install --skip-manifest-update --skip-sign-check --configfile \"{nugetConfigPath}\" --temp-dir \"{_tempDir}/workload-install-temp\" {ExtraWorkloadInstallCommandArguments} {req.WorkloadId}", 234workingDir: _tempDir, 308if (!PackageInstaller.Install(new[] { pkgRef }, nugetConfigContents, _tempDir, Log, stopOnMissing, packagesPath: _nugetCachePath))