10 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)
147Attributes = xml
Microsoft.DotNet.VersionTools.Tests (8)
BuildManifest\ManifestModelTests.cs (8)
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>
31 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed.Tests (13)
BuildModelFactoryTests.cs (13)
168package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 169package.Attributes.Should().Contain("Id", "test-package-a"); 170package.Attributes.Should().Contain("Version", "1.0.0"); 171package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 205package.Attributes.Should().Contain("nonshipping", "true"); 206package.Attributes.Should().Contain("Category", "CASE"); 207package.Attributes.Should().Contain("Id", "test-package-a"); 208package.Attributes.Should().Contain("Version", "1.0.0"); 209package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin); 480package.Attributes.Should().Contain("Id", "test-package-a"); 481package.Attributes.Should().Contain("Version", "1.0.0"); 482package.Attributes.Should().Contain("ShouldWePushDaNorpKeg", "YES"); 483package.Attributes.Should().Contain("RepoOrigin", _testRepoOrigin);
Microsoft.DotNet.VersionTools (18)
BuildManifest\Model\PackageArtifactModel.cs (18)
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)); 62string val = Attributes.GetOrDefault(nameof(Visibility)); 78Attributes[nameof(Visibility)] = value.ToString(); 84get => Attributes.GetOrDefault(nameof(RepoOrigin)); 85set => Attributes[nameof(RepoOrigin)] = value; 99if (Attributes.Count() != other.Attributes.Count()) 104foreach (var localAttr in Attributes) 108if (other.Attributes.GetOrDefault(localAttr.Key) != null) 114other.Attributes.GetOrDefault(localAttr.Key), 131foreach (var item in Attributes) 141Attributes