9 writes to Attributes
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PackageArtifactModelFactory.cs (1)
36Attributes = MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
Microsoft.DotNet.VersionTools (1)
src\BuildManifest\Model\PackageArtifactModel.cs (1)
117Attributes = 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>
25 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed (1)
src\PublishArtifactsInManifestBase.cs (1)
1108if (!packageAsset.Attributes.TryGetValue("Category", out categories))
Microsoft.DotNet.Build.Tasks.Feed.Tests (10)
BuildModelFactoryTests.cs (10)
167package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 168package.Attributes.Should().Contain("Id", "test-package-a"); 169package.Attributes.Should().Contain("Version", "1.0.0"); 204package.Attributes.Should().Contain("nonshipping", "true"); 205package.Attributes.Should().Contain("Category", "CASE"); 206package.Attributes.Should().Contain("Id", "test-package-a"); 207package.Attributes.Should().Contain("Version", "1.0.0"); 474package.Attributes.Should().Contain("Id", "test-package-a"); 475package.Attributes.Should().Contain("Version", "1.0.0"); 476package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES");
Microsoft.DotNet.VersionTools (14)
src\BuildManifest\Model\PackageArtifactModel.cs (14)
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)); 69if (Attributes.Count() != other.Attributes.Count()) 74foreach (var localAttr in Attributes) 78if (other.Attributes.GetOrDefault(localAttr.Key) != null) 84other.Attributes.GetOrDefault(localAttr.Key), 101foreach (var item in Attributes) 111Attributes