9 writes to Attributes
Microsoft.DotNet.Build.Tasks.Feed (1)
src\BlobArtifactModelFactory.cs (1)
44Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
Microsoft.DotNet.VersionTools (1)
BuildManifest\Model\BlobArtifactModel.cs (1)
105Attributes = xml
Microsoft.DotNet.VersionTools.Tests (7)
BuildManifest\ManifestModelTests.cs (7)
577Attributes = new Dictionary<string, string> 586Attributes = new Dictionary<string, string> 601Attributes = new Dictionary<string, string> 610Attributes = new Dictionary<string, string> 625Attributes = new Dictionary<string, string> 634Attributes = new Dictionary<string, string> 649Attributes = new Dictionary<string, string>
35 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishArtifactsInManifestBase.cs (1)
1113if (!blobAsset.Attributes.TryGetValue("Category", out categories) || string.Equals(categories, "NONE", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Feed.Tests (22)
BuildModelFactoryTests.cs (22)
140blob.Attributes.Should().Contain("NonShipping", "true"); 141blob.Attributes.Should().Contain("Category", "SMORKELER"); 142blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 143blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 149blob.Attributes.Should().Contain("NonShipping", "false"); 150blob.Attributes.Should().Contain("Category", "SNORPKEG"); 151blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 152blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 158blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 159blob.Attributes.Should().Contain("Id", zipArtifact); 160blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 448blob.Attributes.Should().Contain("Id", bobSymbolsExpectedId); 449blob.Attributes.Should().Contain("Category", "SMORKELER"); 450blob.Attributes.Should().Contain("NonShipping", "true"); 451blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 457blob.Attributes.Should().Contain("Id", bopSnupkgExpectedId); 458blob.Attributes.Should().Contain("Category", "SNORPKEG"); 459blob.Attributes.Should().Contain("NonShipping", "false"); 460blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 466blob.Attributes.Should().Contain("Id", zipArtifact); 467blob.Attributes.Should().Contain("ARandomBitOfMAD", string.Empty); 468blob.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin);
Microsoft.DotNet.VersionTools (12)
BuildManifest\Model\BlobArtifactModel.cs (12)
23get { return Attributes.GetOrDefault(nameof(Id)); } 24set { Attributes[nameof(Id)] = value; } 31string val = Attributes.GetOrDefault(nameof(NonShipping)); 42get => Attributes.GetOrDefault(nameof(RepoOrigin)); 43set => Attributes[nameof(RepoOrigin)] = value; 57if (Attributes.Count() != other.Attributes.Count()) 62foreach (var localAttr in Attributes) 66if (other.Attributes.GetOrDefault(localAttr.Key) != null) 72other.Attributes.GetOrDefault(localAttr.Key), 89foreach (var item in Attributes) 99Attributes