22 writes to Attributes
Microsoft.DotNet.Build.Tasks.Feed (3)
src\BlobArtifactModelFactory.cs (1)
44
Attributes
= MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
src\PackageArtifactModelFactory.cs (1)
36
Attributes
= MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
src\PdbArtifactModelFactory.cs (1)
41
Attributes
= MSBuildListSplitter.GetNamedProperties(item.GetMetadata("ManifestArtifactData")),
Microsoft.DotNet.VersionTools (3)
BuildManifest\Model\BlobArtifactModel.cs (1)
29
Attributes
= xml
BuildManifest\Model\PackageArtifactModel.cs (1)
71
Attributes
= xml
BuildManifest\Model\PdbArtifactModel.cs (1)
41
Attributes
= xml
Microsoft.DotNet.VersionTools.Tests (16)
BuildManifest\ManifestModelTests.cs (16)
102
Attributes
= new Dictionary<string, string>
112
Attributes
= new Dictionary<string, string>
128
Attributes
= new Dictionary<string, string>
138
Attributes
= new Dictionary<string, string>
154
Attributes
= new Dictionary<string, string>
164
Attributes
= new Dictionary<string, string>
180
Attributes
= new Dictionary<string, string>
201
Attributes
= new Dictionary<string, string>
215
Attributes
= new Dictionary<string, string>
224
Attributes
= new Dictionary<string, string>
239
Attributes
= new Dictionary<string, string>
248
Attributes
= new Dictionary<string, string>
263
Attributes
= new Dictionary<string, string>
272
Attributes
= new Dictionary<string, string>
287
Attributes
= new Dictionary<string, string>
307
Attributes
= new Dictionary<string, string>
109 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PublishArtifactsInManifestBase.cs (2)
1061
if (!packageAsset.
Attributes
.TryGetValue("Category", out categories))
1091
if (!blobAsset.
Attributes
.TryGetValue("Category", out categories) || string.Equals(categories, "NONE", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Feed.Tests (82)
BuildModelFactoryTests.cs (82)
177
blob.
Attributes
.Should().Contain("NonShipping", "true");
178
blob.
Attributes
.Should().Contain("Category", "SMORKELER");
179
blob.
Attributes
.Should().Contain("Id", bobSymbolsExpectedId);
180
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
186
blob.
Attributes
.Should().Contain("NonShipping", "false");
187
blob.
Attributes
.Should().Contain("Category", "SNORPKEG");
188
blob.
Attributes
.Should().Contain("Id", bopSnupkgExpectedId);
189
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
195
blob.
Attributes
.Should().Contain("ARandomBitOfMAD", string.Empty);
196
blob.
Attributes
.Should().Contain("Id", zipArtifact);
197
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
206
package.
Attributes
.Should().Contain("ShouldWePushDaNorpKeg", "YES");
207
package.
Attributes
.Should().Contain("Id", "test-package-a");
208
package.
Attributes
.Should().Contain("Version", "1.0.0");
209
package.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
218
pdb.
Attributes
.Should().Contain("NonShipping", "false");
219
pdb.
Attributes
.Should().Contain("Category", "PDB");
220
pdb.
Attributes
.Should().Contain("Id", pdbArtifact);
221
pdb.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
268
package.
Attributes
.Should().Contain("nonshipping", "true");
269
package.
Attributes
.Should().Contain("Category", "CASE");
270
package.
Attributes
.Should().Contain("Id", "test-package-a");
271
package.
Attributes
.Should().Contain("Version", "1.0.0");
272
package.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
528
blob.
Attributes
.Should().Contain("Id", bobSymbolsExpectedId);
529
blob.
Attributes
.Should().Contain("Category", "SMORKELER");
530
blob.
Attributes
.Should().Contain("NonShipping", "true");
531
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
537
blob.
Attributes
.Should().Contain("Id", bopSnupkgExpectedId);
538
blob.
Attributes
.Should().Contain("Category", "SNORPKEG");
539
blob.
Attributes
.Should().Contain("NonShipping", "false");
540
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
546
blob.
Attributes
.Should().Contain("Id", zipArtifact);
547
blob.
Attributes
.Should().Contain("ARandomBitOfMAD", string.Empty);
548
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
557
package.
Attributes
.Should().Contain("Id", "test-package-a");
558
package.
Attributes
.Should().Contain("Version", "1.0.0");
559
package.
Attributes
.Should().Contain("ShouldWePushDaNorpKeg", "YES");
560
package.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
569
pdb.
Attributes
.Should().Contain("NonShipping", "false");
570
pdb.
Attributes
.Should().Contain("Category", "PDB");
571
pdb.
Attributes
.Should().Contain("Id", pdbArtifact);
572
pdb.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
653
blob.
Attributes
.Should().Contain("Id", bobSymbolsExpectedId);
654
blob.
Attributes
.Should().Contain("Category", "SMORKELER");
655
blob.
Attributes
.Should().Contain("NonShipping", "true");
656
blob.
Attributes
.Should().Contain("RepoOrigin", "runtime");
662
blob.
Attributes
.Should().Contain("Id", zipArtifact);
663
blob.
Attributes
.Should().Contain("ARandomBitOfMAD", string.Empty);
664
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
673
package.
Attributes
.Should().Contain("Id", "test-package-a");
674
package.
Attributes
.Should().Contain("Version", "1.0.0");
675
package.
Attributes
.Should().Contain("ShouldWePushDaNorpKeg", "YES");
676
package.
Attributes
.Should().Contain("RepoOrigin", "runtime");
684
pdb.
Attributes
.Should().Contain("NonShipping", "false");
685
pdb.
Attributes
.Should().Contain("Category", "PDB");
686
pdb.
Attributes
.Should().Contain("Id", pdbArtifact);
687
pdb.
Attributes
.Should().Contain("RepoOrigin", "runtime");
908
blobArtifactA.
Attributes
["AttributeA"] = "ValueA";
909
blobArtifactA.
Attributes
["AttributeB"] = "ValueB";
919
blobArtifactB.
Attributes
["AttributeC"] = "ValueC";
920
blobArtifactB.
Attributes
["AttributeD"] = "ValueD";
933
packageArtifactA.
Attributes
["AttributeE"] = "ValueE";
934
packageArtifactA.
Attributes
["AttributeF"] = "ValueF";
947
packageArtifactB.
Attributes
["AttributeG"] = "ValueG";
948
packageArtifactB.
Attributes
["AttributeH"] = "ValueH";
958
pdbArtifactA.
Attributes
["AttributeI"] = "ValueI";
959
pdbArtifactA.
Attributes
["AttributeJ"] = "ValueJ";
969
pdbArtifactB.
Attributes
["AttributeK"] = "ValueK";
970
pdbArtifactB.
Attributes
["AttributeL"] = "ValueL";
1004
blob.
Attributes
.Should().Contain("AttributeA", "ValueA");
1005
blob.
Attributes
.Should().Contain("AttributeB", "ValueB");
1014
blob.
Attributes
.Should().Contain("AttributeC", "ValueC");
1015
blob.
Attributes
.Should().Contain("AttributeD", "ValueD");
1029
package.
Attributes
.Should().Contain("AttributeE", "ValueE");
1030
package.
Attributes
.Should().Contain("AttributeF", "ValueF");
1042
package.
Attributes
.Should().Contain("AttributeG", "ValueG");
1043
package.
Attributes
.Should().Contain("AttributeH", "ValueH");
1054
pdb.
Attributes
.Should().Contain("AttributeI", "ValueI");
1055
pdb.
Attributes
.Should().Contain("AttributeJ", "ValueJ");
1064
pdb.
Attributes
.Should().Contain("AttributeK", "ValueK");
1065
pdb.
Attributes
.Should().Contain("AttributeL", "ValueL");
Microsoft.DotNet.VersionTools (25)
BuildManifest\Model\ArtifactModel.cs (14)
25
get { return
Attributes
.GetOrDefault(nameof(Id)); }
26
set {
Attributes
[nameof(Id)] = value; }
31
get =>
Attributes
.GetOrDefault(nameof(RepoOrigin));
32
set =>
Attributes
[nameof(RepoOrigin)] = value;
39
string val =
Attributes
.GetOrDefault(nameof(NonShipping));
48
Attributes
[nameof(NonShipping)] = value.ToString();
56
string val =
Attributes
.GetOrDefault(nameof(Visibility));
72
Attributes
[nameof(Visibility)] = value.ToString();
85
if (
Attributes
.Count() != other.
Attributes
.Count())
90
foreach (var localAttr in
Attributes
)
94
if (other.
Attributes
.GetOrDefault(localAttr.Key) != null)
100
other.
Attributes
.GetOrDefault(localAttr.Key),
116
foreach (var item in
Attributes
)
BuildManifest\Model\BlobArtifactModel.cs (1)
23
Attributes
BuildManifest\Model\PackageArtifactModel.cs (8)
27
get { return
Attributes
.GetOrDefault(nameof(Version)); }
28
set {
Attributes
[nameof(Version)] = value; }
33
get { return
Attributes
.GetOrDefault(nameof(OriginBuildName)); }
34
set {
Attributes
[nameof(OriginBuildName)] = value; }
41
string val =
Attributes
.GetOrDefault(nameof(CouldBeStable));
52
Attributes
.Remove(nameof(CouldBeStable));
56
Attributes
[nameof(CouldBeStable)] = value.Value.ToString();
65
Attributes
BuildManifest\Model\PdbArtifactModel.cs (2)
25
foreach (var item in
Attributes
)
35
Attributes