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)
47
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>
66 references to Attributes
Microsoft.DotNet.Build.Tasks.Feed (2)
src\PublishArtifactsInManifestBase.cs (2)
1078
if (!packageAsset.
Attributes
.TryGetValue("Category", out categories))
1108
if (!blobAsset.
Attributes
.TryGetValue("Category", out categories) || string.Equals(categories, "NONE", StringComparison.OrdinalIgnoreCase))
Microsoft.DotNet.Build.Tasks.Feed.Tests (43)
BuildModelFactoryTests.cs (43)
174
blob.
Attributes
.Should().Contain("NonShipping", "true");
175
blob.
Attributes
.Should().Contain("Category", "SMORKELER");
176
blob.
Attributes
.Should().Contain("Id", bobSymbolsExpectedId);
177
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
183
blob.
Attributes
.Should().Contain("NonShipping", "false");
184
blob.
Attributes
.Should().Contain("Category", "SNORPKEG");
185
blob.
Attributes
.Should().Contain("Id", bopSnupkgExpectedId);
186
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
192
blob.
Attributes
.Should().Contain("ARandomBitOfMAD", string.Empty);
193
blob.
Attributes
.Should().Contain("Id", zipArtifact);
194
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
203
package.
Attributes
.Should().Contain("ShouldWePushDaNorpKeg", "YES");
204
package.
Attributes
.Should().Contain("Id", "test-package-a");
205
package.
Attributes
.Should().Contain("Version", "1.0.0");
206
package.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
215
pdb.
Attributes
.Should().Contain("NonShipping", "false");
216
pdb.
Attributes
.Should().Contain("Category", "PDB");
217
pdb.
Attributes
.Should().Contain("Id", pdbArtifact);
218
pdb.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
265
package.
Attributes
.Should().Contain("nonshipping", "true");
266
package.
Attributes
.Should().Contain("Category", "CASE");
267
package.
Attributes
.Should().Contain("Id", "test-package-a");
268
package.
Attributes
.Should().Contain("Version", "1.0.0");
269
package.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
525
blob.
Attributes
.Should().Contain("Id", bobSymbolsExpectedId);
526
blob.
Attributes
.Should().Contain("Category", "SMORKELER");
527
blob.
Attributes
.Should().Contain("NonShipping", "true");
528
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
534
blob.
Attributes
.Should().Contain("Id", bopSnupkgExpectedId);
535
blob.
Attributes
.Should().Contain("Category", "SNORPKEG");
536
blob.
Attributes
.Should().Contain("NonShipping", "false");
537
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
543
blob.
Attributes
.Should().Contain("Id", zipArtifact);
544
blob.
Attributes
.Should().Contain("ARandomBitOfMAD", string.Empty);
545
blob.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
554
package.
Attributes
.Should().Contain("Id", "test-package-a");
555
package.
Attributes
.Should().Contain("Version", "1.0.0");
556
package.
Attributes
.Should().Contain("ShouldWePushDaNorpKeg", "YES");
557
package.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
566
pdb.
Attributes
.Should().Contain("NonShipping", "false");
567
pdb.
Attributes
.Should().Contain("Category", "PDB");
568
pdb.
Attributes
.Should().Contain("Id", pdbArtifact);
569
pdb.
Attributes
.Should().Contain("RepoOrigin", _testRepoOrigin);
Microsoft.DotNet.VersionTools (21)
BuildManifest\Model\ArtifactModel.cs (13)
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));
52
string val =
Attributes
.GetOrDefault(nameof(Visibility));
68
Attributes
[nameof(Visibility)] = value.ToString();
81
if (
Attributes
.Count() != other.
Attributes
.Count())
86
foreach (var localAttr in
Attributes
)
90
if (other.
Attributes
.GetOrDefault(localAttr.Key) != null)
96
other.
Attributes
.GetOrDefault(localAttr.Key),
112
foreach (var item in
Attributes
)
BuildManifest\Model\BlobArtifactModel.cs (1)
23
Attributes
BuildManifest\Model\PackageArtifactModel.cs (5)
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
Attributes
BuildManifest\Model\PdbArtifactModel.cs (2)
25
foreach (var item in
Attributes
)
35
Attributes