7 writes to Manifests
dotnet (4)
Commands\Workload\Install\FileBasedInstaller.cs (2)
571UpdateInstallState(sdkFeatureBand, contents => contents.Manifests = null); 576UpdateInstallState(sdkFeatureBand, contents => contents.Manifests = manifestContents);
Commands\Workload\Install\MsiInstallerBase.cs (2)
565installStateContents.Manifests = null; 597installStateContents.Manifests = manifestContents;
dotnet.Tests (3)
CommandTests\Workload\Install\MockPackWorkloadInstaller.cs (2)
224installStateContents.Manifests = null; 234installStateContents.Manifests = manifestContents;
CommandTests\Workload\Update\GivenDotnetWorkloadUpdate.cs (1)
249oldInstallState.Manifests = new Dictionary<string, string>()
23 references to Manifests
dotnet (16)
Commands\Workload\Install\MsiInstallerBase.cs (4)
548if (installStateContents.Manifests == null) 585if (installStateContents.Manifests != null && // manifestContents should not be null here 586installStateContents.Manifests.Count == manifestContents.Count && 587installStateContents.Manifests.All(m => manifestContents.TryGetValue(m.Key, out var val) && val.Equals(m.Value)))
Commands\Workload\Install\WorkloadInstallCommand.cs (1)
230(installState.Manifests != null || installState.WorkloadVersion != null))
Commands\Workload\InstallingWorkloadCommand.cs (11)
332if (currentInstallState.Manifests == null && oldInstallState.Manifests != null || 333currentInstallState.Manifests != null && oldInstallState.Manifests == null || 334currentInstallState.Manifests != null && oldInstallState.Manifests != null && 335(currentInstallState.Manifests.Count != oldInstallState.Manifests.Count || 336!currentInstallState.Manifests.All(m => oldInstallState.Manifests.TryGetValue(m.Key, out var val) && val.Equals(m.Value)))) 338_workloadInstaller.SaveInstallStateManifestVersions(_sdkFeatureBand, oldInstallState.Manifests);
dotnet.Tests (7)
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (6)
41installState.Manifests.Should().BeNull(); 51installState.Manifests.Count.Should().Be(2); 52installState.Manifests["first"].Should().Be("second"); 53installState.Manifests["third"].Should().Be("fourth"); 59installState.Manifests.Count.Should().Be(2); 63installState.Manifests.Should().BeNull();
CommandTests\Workload\Update\GivenDotnetWorkloadUpdate.cs (1)
258newInstallState.Manifests.Should().BeNull();