44 references to Packages
Microsoft.DotNet.Build.Tasks.Packaging (26)
FilterUnknownPackages.cs (1)
42
isKnownPackage = packageId => index.
Packages
.ContainsKey(packageId);
GetLastStablePackage.cs (1)
148
if (index.
Packages
.TryGetValue(packageId, out info))
PackageIndex.cs (14)
145
foreach(var info in
Packages
.Values)
156
foreach(var otherPackage in other.
Packages
)
161
if (
Packages
.TryGetValue(otherPackage.Key, out info))
167
Packages
[otherPackage.Key] = info = otherInfo;
230
if (
Packages
.TryGetValue(assemblyName, out info))
236
Packages
[assemblyName] = info = new PackageInfo();
247
if (
Packages
.TryGetValue(packageId, out info))
258
return
Packages
.Values.SelectMany(info => info.InboxOn.GetInboxFrameworks()).Distinct().ToArray();
266
if (
Packages
.TryGetValue(assemblyName, out info))
286
if (
Packages
.TryGetValue(assemblyName, out info))
306
if (
Packages
.TryGetValue(assemblyName, out info))
319
if (
Packages
.TryGetValue(packageId, out info))
332
if (
Packages
.TryGetValue(packageId, out info))
352
if (
Packages
.TryGetValue(packageId, out info))
UpdatePackageIndex.cs (6)
180
foreach(var packageInfo in index.
Packages
.Values)
190
Parallel.ForEach(index.
Packages
, (package) =>
298
if (index.
Packages
.TryGetValue(dllName, out identityInfo))
313
var runtimeAssemblyVersions = index.
Packages
344
if (!index.
Packages
.TryGetValue(id, out info))
346
index.
Packages
[id] = info = new PackageInfo();
ValidateFrameworkPackage.cs (2)
56
if (!_index.
Packages
.TryGetValue(name, out packageInfo))
71
var missingInboxAssemblies = _index.
Packages
.Where(packageInfo => packageInfo.Value.InboxOn.IsAnyVersionInbox(fx) && !testAssetsByName.ContainsKey(packageInfo.Key));
ValidatePackage.cs (2)
381
if (!index.
Packages
.TryGetValue(PackageId, out info))
588
if (_index.
Packages
.TryGetValue(ContractName, out packageInfo))
Microsoft.DotNet.Build.Tasks.Packaging.Tests (18)
PackageIndexTests.cs (18)
19
packageIndex.
Packages
.Add("MyPackage", new PackageInfo());
21
packageIndex.
Packages
.Should().HaveCount(1);
22
packageIndex.
Packages
.Should().ContainKey("MyPackage");
30
packageIndex.
Packages
.Should().HaveCount(1);
31
packageIndex.
Packages
.Should().ContainKey("MyPackage");
34
packageIndex.
Packages
.Add("MyPackage", new PackageInfo());
35
packageIndex.
Packages
.Add("MyPackage2", new PackageInfo());
37
packageIndex.
Packages
.Should().HaveCount(2);
38
packageIndex.
Packages
.Should().ContainKey("MyPackage");
39
packageIndex.
Packages
.Should().ContainKey("MyPackage2");
47
packageIndex.
Packages
.Should().HaveCount(2);
48
packageIndex.
Packages
.Should().ContainKey("MyPackage");
49
packageIndex.
Packages
.Should().ContainKey("MyPackage2");
53
packageIndex.
Packages
.Remove("MyPackage2");
54
packageIndex.
Packages
.Add("MyPackage3", new PackageInfo());
64
packageIndex.
Packages
.Should().HaveCount(2);
65
packageIndex.
Packages
.Should().ContainKey("MyPackage");
66
packageIndex.
Packages
.Should().ContainKey("MyPackage3");