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)
65
if (Directory.Exists(
_tempDir
))
66
Directory.Delete(
_tempDir
, recursive: true);
67
Directory.CreateDirectory(
_tempDir
);
68
_nugetCachePath = Path.Combine(
_tempDir
, "nuget-cache");
71
Log.LogMessage(MessageImportance.High, $"Using temporary directory {
_tempDir
} for installing workloads from artifacts.");
147
if (!SkipTempDirectoryCleanup && !string.IsNullOrEmpty(
_tempDir
) && Directory.Exists(
_tempDir
))
148
Directory.Delete(
_tempDir
, recursive: true);
220
string 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}",
234
workingDir:
_tempDir
,
308
if (!PackageInstaller.Install(new[] { pkgRef }, nugetConfigContents,
_tempDir
, Log, stopOnMissing, packagesPath: _nugetCachePath))