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)
229PackageSourceIdentity.IsNamedSourceReference(mapping.Source) &&
NuGet\NuGetClient.cs (1)
699PackageSourceIdentity.Comparer.Equals(source.Source, sourceNameOrLocation)));
NuGet\NuGetConfigurationBuilder.cs (5)
165.Distinct(PackageSourceIdentity.Comparer)) 173PackageSourceIdentity.IsNamedSourceReference(source) && 383PackageSourceIdentity.Comparer.Equals(mapping.Source, packageScopedAppendSource) && 394.ToHashSet(PackageSourceIdentity.Comparer); 416source => 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)
213if (!additionalSources.Contains(mapping.Source, PackageSourceIdentity.Comparer)) 231PackageSourceIdentity.Comparer.Equals(mapping.Source, packageSourceOverride)) 238if (!additionalSources.Contains(mapping.Source, PackageSourceIdentity.Comparer)) 302.ThenBy(static mapping => PackageSourceIdentity.Normalize(mapping.Source), StringComparer.Ordinal); 306AppendIdentityPart(builder, PackageSourceIdentity.Normalize(mapping.Source)); 310.Distinct(PackageSourceIdentity.Comparer) 311.OrderBy(PackageSourceIdentity.Normalize, StringComparer.Ordinal)) 313AppendIdentityPart(builder, PackageSourceIdentity.Normalize(source)); 492.Distinct(PackageSourceIdentity.Comparer) 505.FirstOrDefault(source => PackageSourceIdentity.Comparer.Equals(source.Source, primarySource))
Utils\CliPathHelper.cs (1)
163var normalized = PackageSourceIdentity.Normalize(feedUrl);
Aspire.Cli.Tests (7)
NuGet\TemporaryNuGetConfigFileTests.cs (1)
67PackageSourceIdentity.Comparer);
Packaging\PackageSourceIdentityTests.cs (3)
30PackageSourceIdentity.Normalize(feed.FullName), 31PackageSourceIdentity.Normalize(nativeSource.Source)); 70Assert.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));