9 writes to Attributes
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PackageArtifactModelFactory.cs (1)
36Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
Microsoft.DotNet.VersionTools (1)
BuildManifest\Model\PackageArtifactModel.cs (1)
123Attributes = xml
Microsoft.DotNet.VersionTools.Tests (7)
BuildManifest\ManifestModelTests.cs (7)
483Attributes = new Dictionary<string, string> 493Attributes = new Dictionary<string, string> 509Attributes = new Dictionary<string, string> 519Attributes = new Dictionary<string, string> 535Attributes = new Dictionary<string, string> 545Attributes = new Dictionary<string, string> 561Attributes = new Dictionary<string, string>
30 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishArtifactsInManifestBase.cs (1)
1083if (!packageAsset.Attributes.TryGetValue("Category", out categories))
Microsoft.DotNet.Build.Tasks.Feed.Tests (13)
BuildModelFactoryTests.cs (13)
169package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 170package.Attributes.Should().Contain("Id", "test-package-a"); 171package.Attributes.Should().Contain("Version", "1.0.0"); 172package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 206package.Attributes.Should().Contain("nonshipping", "true"); 207package.Attributes.Should().Contain("Category", "CASE"); 208package.Attributes.Should().Contain("Id", "test-package-a"); 209package.Attributes.Should().Contain("Version", "1.0.0"); 210package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 477package.Attributes.Should().Contain("Id", "test-package-a"); 478package.Attributes.Should().Contain("Version", "1.0.0"); 479package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 480package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin);
Microsoft.DotNet.VersionTools (16)
BuildManifest\Model\PackageArtifactModel.cs (16)
29get { return Attributes.GetOrDefault(nameof(Id)); } 30set { Attributes[nameof(Id)] = value; } 35get { return Attributes.GetOrDefault(nameof(Version)); } 36set { Attributes[nameof(Version)] = value; } 41get { return Attributes.GetOrDefault(nameof(OriginBuildName)); } 42set { Attributes[nameof(OriginBuildName)] = value; } 49string val = Attributes.GetOrDefault(nameof(NonShipping)); 60get => Attributes.GetOrDefault(nameof(RepoOrigin)); 61set => Attributes[nameof(RepoOrigin)] = value; 75if (Attributes.Count() != other.Attributes.Count()) 80foreach (var localAttr in Attributes) 84if (other.Attributes.GetOrDefault(localAttr.Key) != null) 90other.Attributes.GetOrDefault(localAttr.Key), 107foreach (var item in Attributes) 117Attributes