22 writes to Attributes
Microsoft.DotNet.Build.Tasks.Feed (3)
src\BlobArtifactModelFactory.cs (1)
44Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
src\PackageArtifactModelFactory.cs (1)
36Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
src\PdbArtifactModelFactory.cs (1)
41Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
Microsoft.DotNet.VersionTools (3)
BuildManifest\Model\BlobArtifactModel.cs (1)
29Attributes = xml
BuildManifest\Model\PackageArtifactModel.cs (1)
71Attributes = xml
BuildManifest\Model\PdbArtifactModel.cs (1)
41Attributes = xml
Microsoft.DotNet.VersionTools.Tests (16)
BuildManifest\ManifestModelTests.cs (16)
102Attributes = new Dictionary<string, string> 112Attributes = new Dictionary<string, string> 128Attributes = new Dictionary<string, string> 138Attributes = new Dictionary<string, string> 154Attributes = new Dictionary<string, string> 164Attributes = new Dictionary<string, string> 180Attributes = new Dictionary<string, string> 201Attributes = new Dictionary<string, string> 215Attributes = new Dictionary<string, string> 224Attributes = new Dictionary<string, string> 239Attributes = new Dictionary<string, string> 248Attributes = new Dictionary<string, string> 263Attributes = new Dictionary<string, string> 272Attributes = new Dictionary<string, string> 287Attributes = new Dictionary<string, string> 307Attributes = new Dictionary<string, string>
109 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PublishArtifactsInManifestBase.cs (2)
1061if (!packageAsset.Attributes.TryGetValue("Category", out categories)) 1091if (!blobAsset.Attributes.TryGetValue("Category", out categories) || string.Equals(categories, "NONE", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Feed.Tests (82)
BuildModelFactoryTests.cs (82)
177blob.Attributes.Should().Contain("NonShipping", "true"); 178blob.Attributes.Should().Contain("Category", "SMORKELER"); 179blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 180blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 186blob.Attributes.Should().Contain("NonShipping", "false"); 187blob.Attributes.Should().Contain("Category", "SNORPKEG"); 188blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 189blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 195blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 196blob.Attributes.Should().Contain("Id", zipArtifact); 197blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 206package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 207package.Attributes.Should().Contain("Id", "test-package-a"); 208package.Attributes.Should().Contain("Version", "1.0.0"); 209package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 218pdb.Attributes.Should().Contain("NonShipping", "false"); 219pdb.Attributes.Should().Contain("Category", "PDB"); 220pdb.Attributes.Should().Contain("Id", pdbArtifact); 221pdb.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 268package.Attributes.Should().Contain("nonshipping", "true"); 269package.Attributes.Should().Contain("Category", "CASE"); 270package.Attributes.Should().Contain("Id", "test-package-a"); 271package.Attributes.Should().Contain("Version", "1.0.0"); 272package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 528blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 529blob.Attributes.Should().Contain("Category", "SMORKELER"); 530blob.Attributes.Should().Contain("NonShipping", "true"); 531blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 537blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 538blob.Attributes.Should().Contain("Category", "SNORPKEG"); 539blob.Attributes.Should().Contain("NonShipping", "false"); 540blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 546blob.Attributes.Should().Contain("Id", zipArtifact); 547blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 548blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 557package.Attributes.Should().Contain("Id", "test-package-a"); 558package.Attributes.Should().Contain("Version", "1.0.0"); 559package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 560package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 569pdb.Attributes.Should().Contain("NonShipping", "false"); 570pdb.Attributes.Should().Contain("Category", "PDB"); 571pdb.Attributes.Should().Contain("Id", pdbArtifact); 572pdb.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 653blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 654blob.Attributes.Should().Contain("Category", "SMORKELER"); 655blob.Attributes.Should().Contain("NonShipping", "true"); 656blob.Attributes.Should().Contain("RepoOrigin", "runtime"); 662blob.Attributes.Should().Contain("Id", zipArtifact); 663blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 664blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 673package.Attributes.Should().Contain("Id", "test-package-a"); 674package.Attributes.Should().Contain("Version", "1.0.0"); 675package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 676package.Attributes.Should().Contain("RepoOrigin", "runtime"); 684pdb.Attributes.Should().Contain("NonShipping", "false"); 685pdb.Attributes.Should().Contain("Category", "PDB"); 686pdb.Attributes.Should().Contain("Id", pdbArtifact); 687pdb.Attributes.Should().Contain("RepoOrigin", "runtime"); 908blobArtifactA.Attributes["AttributeA"] = "ValueA"; 909blobArtifactA.Attributes["AttributeB"] = "ValueB"; 919blobArtifactB.Attributes["AttributeC"] = "ValueC"; 920blobArtifactB.Attributes["AttributeD"] = "ValueD"; 933packageArtifactA.Attributes["AttributeE"] = "ValueE"; 934packageArtifactA.Attributes["AttributeF"] = "ValueF"; 947packageArtifactB.Attributes["AttributeG"] = "ValueG"; 948packageArtifactB.Attributes["AttributeH"] = "ValueH"; 958pdbArtifactA.Attributes["AttributeI"] = "ValueI"; 959pdbArtifactA.Attributes["AttributeJ"] = "ValueJ"; 969pdbArtifactB.Attributes["AttributeK"] = "ValueK"; 970pdbArtifactB.Attributes["AttributeL"] = "ValueL"; 1004blob.Attributes.Should().Contain("AttributeA", "ValueA"); 1005blob.Attributes.Should().Contain("AttributeB", "ValueB"); 1014blob.Attributes.Should().Contain("AttributeC", "ValueC"); 1015blob.Attributes.Should().Contain("AttributeD", "ValueD"); 1029package.Attributes.Should().Contain("AttributeE", "ValueE"); 1030package.Attributes.Should().Contain("AttributeF", "ValueF"); 1042package.Attributes.Should().Contain("AttributeG", "ValueG"); 1043package.Attributes.Should().Contain("AttributeH", "ValueH"); 1054pdb.Attributes.Should().Contain("AttributeI", "ValueI"); 1055pdb.Attributes.Should().Contain("AttributeJ", "ValueJ"); 1064pdb.Attributes.Should().Contain("AttributeK", "ValueK"); 1065pdb.Attributes.Should().Contain("AttributeL", "ValueL");
Microsoft.DotNet.VersionTools (25)
BuildManifest\Model\ArtifactModel.cs (14)
25get { return Attributes.GetOrDefault(nameof(Id)); } 26set { Attributes[nameof(Id)] = value; } 31get => Attributes.GetOrDefault(nameof(RepoOrigin)); 32set => Attributes[nameof(RepoOrigin)] = value; 39string val = Attributes.GetOrDefault(nameof(NonShipping)); 48Attributes[nameof(NonShipping)] = value.ToString(); 56string val = Attributes.GetOrDefault(nameof(Visibility)); 72Attributes[nameof(Visibility)] = value.ToString(); 85if (Attributes.Count() != other.Attributes.Count()) 90foreach (var localAttr in Attributes) 94if (other.Attributes.GetOrDefault(localAttr.Key) != null) 100other.Attributes.GetOrDefault(localAttr.Key), 116foreach (var item in Attributes)
BuildManifest\Model\BlobArtifactModel.cs (1)
23Attributes
BuildManifest\Model\PackageArtifactModel.cs (8)
27get { return Attributes.GetOrDefault(nameof(Version)); } 28set { Attributes[nameof(Version)] = value; } 33get { return Attributes.GetOrDefault(nameof(OriginBuildName)); } 34set { Attributes[nameof(OriginBuildName)] = value; } 41string val = Attributes.GetOrDefault(nameof(CouldBeStable)); 52Attributes.Remove(nameof(CouldBeStable)); 56Attributes[nameof(CouldBeStable)] = value.Value.ToString(); 65Attributes
BuildManifest\Model\PdbArtifactModel.cs (2)
25foreach (var item in Attributes) 35Attributes