29 references to PackageSourceIdentity
aspire (22)
Commands\AddCommand.cs (2)
512
.Distinct(
PackageSourceIdentity
.Comparer);
531
.GroupBy(static mapping => mapping.Source,
PackageSourceIdentity
.Comparer)
NuGet\BundleNuGetService.cs (1)
229
PackageSourceIdentity
.IsNamedSourceReference(mapping.Source) &&
NuGet\NuGetClient.cs (1)
699
PackageSourceIdentity
.Comparer.Equals(source.Source, sourceNameOrLocation)));
NuGet\NuGetConfigurationBuilder.cs (5)
165
.Distinct(
PackageSourceIdentity
.Comparer))
173
PackageSourceIdentity
.IsNamedSourceReference(source) &&
383
PackageSourceIdentity
.Comparer.Equals(mapping.Source, packageScopedAppendSource) &&
394
.ToHashSet(
PackageSourceIdentity
.Comparer);
416
source =>
PackageSourceIdentity
.Comparer.Equals(source.Source, mapping.Source)))
Packaging\PackageSourceOverrideMappings.cs (2)
86
!
PackageSourceIdentity
.Comparer.Equals(mapping.Source, packageSourceOverride)))
102
(mapping.PackageFilter.ToUpperInvariant(),
PackageSourceIdentity
.Normalize(mapping.Source)))
Projects\IntegrationRestorePlan.cs (10)
213
if (!additionalSources.Contains(mapping.Source,
PackageSourceIdentity
.Comparer))
231
PackageSourceIdentity
.Comparer.Equals(mapping.Source, packageSourceOverride))
238
if (!additionalSources.Contains(mapping.Source,
PackageSourceIdentity
.Comparer))
302
.ThenBy(static mapping =>
PackageSourceIdentity
.Normalize(mapping.Source), StringComparer.Ordinal);
306
AppendIdentityPart(builder,
PackageSourceIdentity
.Normalize(mapping.Source));
310
.Distinct(
PackageSourceIdentity
.Comparer)
311
.OrderBy(
PackageSourceIdentity
.Normalize, StringComparer.Ordinal))
313
AppendIdentityPart(builder,
PackageSourceIdentity
.Normalize(source));
492
.Distinct(
PackageSourceIdentity
.Comparer)
505
.FirstOrDefault(source =>
PackageSourceIdentity
.Comparer.Equals(source.Source, primarySource))
Utils\CliPathHelper.cs (1)
163
var normalized =
PackageSourceIdentity
.Normalize(feedUrl);
Aspire.Cli.Tests (7)
NuGet\TemporaryNuGetConfigFileTests.cs (1)
67
PackageSourceIdentity
.Comparer);
Packaging\PackageSourceIdentityTests.cs (3)
30
PackageSourceIdentity
.Normalize(feed.FullName),
31
PackageSourceIdentity
.Normalize(nativeSource.Source));
70
Assert.Equal(OperatingSystem.IsWindows(),
PackageSourceIdentity
.Comparer.Equals(feed.FullName, caseVariant));
Packaging\PackageSourceOverrideMappingsTests.cs (1)
62
.Where(mapping =>
PackageSourceIdentity
.Comparer.Equals(mapping.Source, source))
Projects\PrebuiltAppHostServerTests.cs (2)
5367
.SingleOrDefault(element =>
PackageSourceIdentity
.Comparer.Equals(
5374
.FirstOrDefault(key => key is not null &&
PackageSourceIdentity
.Comparer.Equals(key, source));