1 write to Version
Microsoft.DotNet.TemplateLocator (1)
WorkloadResolver.cs (1)
668
Version
= version;
32 references to Version
dotnet (22)
Commands\Workload\Install\FileBasedInstaller.cs (13)
151
_reporter.WriteLine(string.Format(CliCommandStrings.WorkloadPackAlreadyInstalledMessage, packInfo.ResolvedPackageId, packInfo.
Version
));
167
new NuGetVersion(packInfo.
Version
),
174
_reporter.WriteLine(string.Format(CliCommandStrings.UsingCacheForPackInstall, packInfo.ResolvedPackageId, packInfo.
Version
, offlineCache));
175
var packagePath = Path.Combine(offlineCache.Value.Value, $"{packInfo.ResolvedPackageId}.{packInfo.
Version
}.nupkg");
178
throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, packInfo.ResolvedPackageId, packInfo.
Version
, offlineCache));
186
_reporter.WriteLine(string.Format(CliCommandStrings.InstallingPackVersionMessage, packInfo.ResolvedPackageId, packInfo.
Version
));
203
var tempExtractionDir = Path.Combine(_tempPackagesDir.Value, $"{packInfo.ResolvedPackageId}-{packInfo.
Version
}-extracted");
389
return [.. packs.Select(p => new WorkloadDownload(p.Id, p.ResolvedPackageId, p.
Version
))];
705
_reporter.WriteLine(string.Format(CliCommandStrings.DeletingWorkloadPack, packInfo.Id, packInfo.
Version
));
871
_reporter.WriteLine(string.Format(CliCommandStrings.WritingPackInstallRecordMessage, packInfo.ResolvedPackageId, packInfo.
Version
));
872
var path = GetPackInstallRecordPath(new WorkloadPackId(packInfo.ResolvedPackageId), packInfo.
Version
, featureBand);
882
var packInstallRecord = GetPackInstallRecordPath(new WorkloadPackId(packInfo.ResolvedPackageId), packInfo.
Version
, featureBand);
903
var packInstallRecordDir = Path.Combine(_workloadMetadataDir, InstalledPacksDir, "v1", packInfo.Id, packInfo.
Version
);
Commands\Workload\Install\MsiInstallerBase.cs (1)
411
Path.GetFileNameWithoutExtension(Log.LogPath) + $"_{packInfo.ResolvedPackageId}-{packInfo.
Version
}_{action}.log");
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (2)
823
Log?.LogMessage($"{nameof(PackInfo)}: {nameof(packInfo.Id)}: {packInfo.Id}, {nameof(packInfo.Kind)}: {packInfo.Kind}, {nameof(packInfo.
Version
)}: {packInfo.
Version
}, {nameof(packInfo.ResolvedPackageId)}: {packInfo.ResolvedPackageId}");
Commands\Workload\Install\NetSdkMsiInstallerClient.PackGroup.cs (4)
85
if (packsProcessed.Contains((pack.Id, pack.
Version
)))
90
if (groupsForPacks.TryGetValue((pack.Id, pack.
Version
), out var groups))
102
packsProcessed.Add((pack.Id, pack.
Version
));
111
return new WorkloadDownload(packInfo.ResolvedPackageId, GetMsiPackageId(packInfo), packInfo.
Version
);
Commands\Workload\Install\WorkloadGarbageCollector.cs (2)
174
_verboseReporter.WriteLine($"GC: Keeping workload pack {pack.ResolvedPackageId} {pack.
Version
} as part of workload set {workloadSet}");
175
PacksToKeep.Add((new WorkloadPackId(pack.ResolvedPackageId), pack.
Version
));
dotnet.Tests (9)
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (2)
284
var packRecordPath = Path.Combine(installedPacksPath, pack.Id, pack.
Version
, sdkVersion);
306
var expectedRecordPath = Path.Combine(installedPacksPath, pack.Id, pack.
Version
, sdkVersions[1]);
CommandTests\Workload\Install\MockPackWorkloadInstaller.cs (3)
171
packs = packs.Where(p => !InstalledPacks.Any(installed => installed.ResolvedPackageId == p.ResolvedPackageId && installed.
Version
== p.
Version
));
174
return packs.Select(p => new WorkloadDownload(p.ResolvedPackageId, p.ResolvedPackageId, p.
Version
));
CommandTests\Workload\Install\WorkloadGarbageCollectionTests.cs (1)
316
var packRecordPath = Path.Combine(installedPacksPath, pack.Id, pack.
Version
, sdkFeatureBand);
CommandTests\Workload\Update\GivenDotnetWorkloadUpdate.cs (3)
234
Directory.CreateDirectory(Path.Combine(packRecordDir, pack.Id, pack.
Version
));
235
File.Create(Path.Combine(packRecordDir, pack.Id, pack.
Version
, oldFeatureBand)).Close();
263
File.Exists(Path.Combine(packRecordDir, pack.Id, pack.
Version
, oldFeatureBand))
Microsoft.DotNet.TemplateLocator (1)
TemplateLocator.cs (1)
63
.Select(pack => new OptionalSdkTemplatePackageInfo(pack.Id, pack.
Version
, pack.Path)).ToList();