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)
47Attributes = 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>
66 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PublishArtifactsInManifestBase.cs (2)
1078if (!packageAsset.Attributes.TryGetValue("Category", out categories)) 1108if (!blobAsset.Attributes.TryGetValue("Category", out categories) || string.Equals(categories, "NONE", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Feed.Tests (43)
BuildModelFactoryTests.cs (43)
174blob.Attributes.Should().Contain("NonShipping", "true"); 175blob.Attributes.Should().Contain("Category", "SMORKELER"); 176blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 177blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 183blob.Attributes.Should().Contain("NonShipping", "false"); 184blob.Attributes.Should().Contain("Category", "SNORPKEG"); 185blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 186blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 192blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 193blob.Attributes.Should().Contain("Id", zipArtifact); 194blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 203package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 204package.Attributes.Should().Contain("Id", "test-package-a"); 205package.Attributes.Should().Contain("Version", "1.0.0"); 206package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 215pdb.Attributes.Should().Contain("NonShipping", "false"); 216pdb.Attributes.Should().Contain("Category", "PDB"); 217pdb.Attributes.Should().Contain("Id", pdbArtifact); 218pdb.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 265package.Attributes.Should().Contain("nonshipping", "true"); 266package.Attributes.Should().Contain("Category", "CASE"); 267package.Attributes.Should().Contain("Id", "test-package-a"); 268package.Attributes.Should().Contain("Version", "1.0.0"); 269package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 525blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 526blob.Attributes.Should().Contain("Category", "SMORKELER"); 527blob.Attributes.Should().Contain("NonShipping", "true"); 528blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 534blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 535blob.Attributes.Should().Contain("Category", "SNORPKEG"); 536blob.Attributes.Should().Contain("NonShipping", "false"); 537blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 543blob.Attributes.Should().Contain("Id", zipArtifact); 544blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 545blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 554package.Attributes.Should().Contain("Id", "test-package-a"); 555package.Attributes.Should().Contain("Version", "1.0.0"); 556package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 557package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 566pdb.Attributes.Should().Contain("NonShipping", "false"); 567pdb.Attributes.Should().Contain("Category", "PDB"); 568pdb.Attributes.Should().Contain("Id", pdbArtifact); 569pdb.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin);
Microsoft.DotNet.VersionTools (21)
BuildManifest\Model\ArtifactModel.cs (13)
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)); 52string val = Attributes.GetOrDefault(nameof(Visibility)); 68Attributes[nameof(Visibility)] = value.ToString(); 81if (Attributes.Count() != other.Attributes.Count()) 86foreach (var localAttr in Attributes) 90if (other.Attributes.GetOrDefault(localAttr.Key) != null) 96other.Attributes.GetOrDefault(localAttr.Key), 112foreach (var item in Attributes)
BuildManifest\Model\BlobArtifactModel.cs (1)
23Attributes
BuildManifest\Model\PackageArtifactModel.cs (5)
27get { return Attributes.GetOrDefault(nameof(Version)); } 28set { Attributes[nameof(Version)] = value; } 33get { return Attributes.GetOrDefault(nameof(OriginBuildName)); } 34set { Attributes[nameof(OriginBuildName)] = value; } 41Attributes
BuildManifest\Model\PdbArtifactModel.cs (2)
25foreach (var item in Attributes) 35Attributes