6 writes to Attributes
Microsoft.DotNet.Build.Manifest (6)
BlobArtifactModel.cs (1)
25Attributes = xml
BlobArtifactModelFactory.cs (1)
43Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
PackageArtifactModel.cs (1)
68Attributes = xml
PackageArtifactModelFactory.cs (1)
35Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
PdbArtifactModel.cs (1)
37Attributes = xml
PdbArtifactModelFactory.cs (1)
41Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
125 references to Attributes
Microsoft.DotNet.Build.Manifest (25)
ArtifactModel.cs (14)
24get { return Attributes.GetOrDefault(nameof(Id)); } 25set { Attributes[nameof(Id)] = value; } 30get => Attributes.GetOrDefault(nameof(RepoOrigin)); 31set => Attributes[nameof(RepoOrigin)] = value; 38string val = Attributes.GetOrDefault(nameof(NonShipping)); 47Attributes[nameof(NonShipping)] = value.ToString(); 55string val = Attributes.GetOrDefault(nameof(Visibility)); 71Attributes[nameof(Visibility)] = value.ToString(); 84if (Attributes.Count() != other.Attributes.Count()) 89foreach (var localAttr in Attributes) 93if (other.Attributes.GetOrDefault(localAttr.Key) != null) 99other.Attributes.GetOrDefault(localAttr.Key), 115foreach (var item in Attributes)
BlobArtifactModel.cs (1)
19Attributes
PackageArtifactModel.cs (8)
24get { return Attributes.GetOrDefault(nameof(Version)); } 25set { Attributes[nameof(Version)] = value; } 30get { return Attributes.GetOrDefault(nameof(OriginBuildName)); } 31set { Attributes[nameof(OriginBuildName)] = value; } 38string val = Attributes.GetOrDefault(nameof(CouldBeStable)); 49Attributes.Remove(nameof(CouldBeStable)); 53Attributes[nameof(CouldBeStable)] = value.Value.ToString(); 62Attributes
PdbArtifactModel.cs (2)
21foreach (var item in Attributes) 31Attributes
Microsoft.DotNet.Build.Manifest.Tests (100)
BuildModelFactoryTests.cs (100)
171blob.Attributes.Should().Contain("NonShipping", "true"); 172blob.Attributes.Should().Contain("Category", "SMORKELER"); 173blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 174blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 180blob.Attributes.Should().Contain("NonShipping", "false"); 181blob.Attributes.Should().Contain("Category", "SNORPKEG"); 182blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 183blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 189blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 190blob.Attributes.Should().Contain("Id", zipArtifact); 191blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 200package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 201package.Attributes.Should().Contain("Id", "test-package-a"); 202package.Attributes.Should().Contain("Version", "1.0.0"); 203package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 212pdb.Attributes.Should().Contain("NonShipping", "false"); 213pdb.Attributes.Should().Contain("Category", "PDB"); 214pdb.Attributes.Should().Contain("Id", pdbArtifact); 215pdb.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 262package.Attributes.Should().Contain("nonshipping", "true"); 263package.Attributes.Should().Contain("Category", "CASE"); 264package.Attributes.Should().Contain("Id", "test-package-a"); 265package.Attributes.Should().Contain("Version", "1.0.0"); 266package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 522blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 523blob.Attributes.Should().Contain("Category", "SMORKELER"); 524blob.Attributes.Should().Contain("NonShipping", "true"); 525blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 531blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 532blob.Attributes.Should().Contain("Category", "SNORPKEG"); 533blob.Attributes.Should().Contain("NonShipping", "false"); 534blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 540blob.Attributes.Should().Contain("Id", zipArtifact); 541blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 542blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 551package.Attributes.Should().Contain("Id", "test-package-a"); 552package.Attributes.Should().Contain("Version", "1.0.0"); 553package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 554package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 563pdb.Attributes.Should().Contain("NonShipping", "false"); 564pdb.Attributes.Should().Contain("Category", "PDB"); 565pdb.Attributes.Should().Contain("Id", pdbArtifact); 566pdb.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 647blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 648blob.Attributes.Should().Contain("Category", "SMORKELER"); 649blob.Attributes.Should().Contain("NonShipping", "true"); 650blob.Attributes.Should().Contain("RepoOrigin", "runtime"); 656blob.Attributes.Should().Contain("Id", zipArtifact); 657blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 658blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 667package.Attributes.Should().Contain("Id", "test-package-a"); 668package.Attributes.Should().Contain("Version", "1.0.0"); 669package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 670package.Attributes.Should().Contain("RepoOrigin", "runtime"); 678pdb.Attributes.Should().Contain("NonShipping", "false"); 679pdb.Attributes.Should().Contain("Category", "PDB"); 680pdb.Attributes.Should().Contain("Id", pdbArtifact); 681pdb.Attributes.Should().Contain("RepoOrigin", "runtime"); 880blobArtifactA.Attributes["AttributeA"] = "ValueA"; 881blobArtifactA.Attributes["AttributeB"] = "ValueB"; 891blobArtifactB.Attributes["AttributeC"] = "ValueC"; 892blobArtifactB.Attributes["AttributeD"] = "ValueD"; 905packageArtifactA.Attributes["AttributeE"] = "ValueE"; 906packageArtifactA.Attributes["AttributeF"] = "ValueF"; 919packageArtifactB.Attributes["AttributeG"] = "ValueG"; 920packageArtifactB.Attributes["AttributeH"] = "ValueH"; 930pdbArtifactA.Attributes["AttributeI"] = "ValueI"; 931pdbArtifactA.Attributes["AttributeJ"] = "ValueJ"; 941pdbArtifactB.Attributes["AttributeK"] = "ValueK"; 942pdbArtifactB.Attributes["AttributeL"] = "ValueL"; 976blob.Attributes.Should().Contain("AttributeA", "ValueA"); 977blob.Attributes.Should().Contain("AttributeB", "ValueB"); 986blob.Attributes.Should().Contain("AttributeC", "ValueC"); 987blob.Attributes.Should().Contain("AttributeD", "ValueD"); 1001package.Attributes.Should().Contain("AttributeE", "ValueE"); 1002package.Attributes.Should().Contain("AttributeF", "ValueF"); 1014package.Attributes.Should().Contain("AttributeG", "ValueG"); 1015package.Attributes.Should().Contain("AttributeH", "ValueH"); 1026pdb.Attributes.Should().Contain("AttributeI", "ValueI"); 1027pdb.Attributes.Should().Contain("AttributeJ", "ValueJ"); 1036pdb.Attributes.Should().Contain("AttributeK", "ValueK"); 1037pdb.Attributes.Should().Contain("AttributeL", "ValueL"); 1056blobArtifactA.Attributes["AttributeA"] = "ValueA"; 1057blobArtifactA.Attributes["AttributeB"] = "ValueB"; 1067blobArtifactB.Attributes["AttributeC"] = "ValueC"; 1068blobArtifactB.Attributes["AttributeD"] = "ValueD"; 1081packageArtifactA.Attributes["AttributeE"] = "ValueE"; 1082packageArtifactA.Attributes["AttributeF"] = "ValueF"; 1095packageArtifactB.Attributes["AttributeG"] = "ValueG"; 1096packageArtifactB.Attributes["AttributeH"] = "ValueH"; 1106pdbArtifactA.Attributes["AttributeI"] = "ValueI"; 1107pdbArtifactA.Attributes["AttributeJ"] = "ValueJ"; 1117pdbArtifactB.Attributes["AttributeK"] = "ValueK"; 1118pdbArtifactB.Attributes["AttributeL"] = "ValueL"; 1152blob.Attributes.Should().Contain("AttributeA", "ValueA"); 1153blob.Attributes.Should().Contain("AttributeB", "ValueB"); 1167package.Attributes.Should().Contain("AttributeE", "ValueE"); 1168package.Attributes.Should().Contain("AttributeF", "ValueF"); 1179pdb.Attributes.Should().Contain("AttributeI", "ValueI"); 1180pdb.Attributes.Should().Contain("AttributeJ", "ValueJ");