1 write to Name
NuGet.Configuration (1)
PackageSource\PackageSource.cs (1)
153
Name
= name ?? throw new ArgumentNullException(nameof(name));
78 references to Name
aspire-managed (5)
NuGet\Commands\RestoreCommand.cs (2)
293
Console.WriteLine($" Discovered source: {source.
Name
?? source.Source}");
324
Console.WriteLine($" - {source.
Name
?? source.Source}");
NuGet\Commands\SearchCommand.cs (3)
138
Console.Error.WriteLine($"Searching {source.
Name
} ({source.Source})...");
145
Console.Error.WriteLine($"Warning: Failed to search {source.
Name
}: {ex.Message}");
217
Console.Error.WriteLine($"Using source from config: {source.
Name
} ({source.Source})");
dotnet (1)
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
526
defaultSources = [.. defaultSources.Where(source => sources.Contains(source.
Name
))];
Microsoft.TemplateEngine.Cli (2)
TemplatePackageCoordinator.cs (2)
486
string sourceFeed = packageMetadata.Source.Source == packageMetadata.Source.
Name
? packageMetadata.Source.Source : $"{packageMetadata.Source.
Name
} [{packageMetadata.Source.Source}]";
NuGet.CommandLine.XPlat (8)
Commands\Package\Download\PackageDownloadRunner.cs (1)
279
if (string.Equals(allRepos[i].PackageSource.
Name
, mappedName, StringComparison.OrdinalIgnoreCase))
Commands\Package\Update\PackageUpdateIO.cs (1)
354
sourceMappedSources.AddRange(_enabledSources.Where(ps => allowedSources.Contains(ps.
Name
, StringComparer.OrdinalIgnoreCase)));
Commands\PackageReferenceCommands\ListPackage\ListPackageCommandRunner.cs (1)
283
string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, source.
Name
)
Commands\PackageSearch\PackageSearchResultJsonRenderer.cs (2)
30
PackageSearchResult packageSearchResult = new PackageSearchResult(source.
Name
);
42
PackageSearchResult packageSearchResult = new PackageSearchResult(source.
Name
)
Commands\PackageSearch\PackageSearchResultTableRenderer.cs (2)
37
_loggerWithColor.LogMinimal($"Source: {source.
Name
} ({source.SourceUri})");
48
_loggerWithColor.LogMinimal($"Source: {source.
Name
} ({source.SourceUri})");
Utility\HttpSourcesUtility.cs (1)
55
Environment.NewLine + string.Join(Environment.NewLine, httpSources.Select(e => e.
Name
)));
NuGet.Commands (14)
ListCommand\ListCommandRunner.cs (1)
100
Environment.NewLine + string.Join(Environment.NewLine, httpPackageSources.Select(e => e.
Name
))));
RestoreCommand\Diagnostics\UnresolvedMessages.cs (6)
122
sourceInfo.Select(e => e.Key.
Name
)
164
.OrderBy(e => e.Source.
Name
)
167
packageSource.Source.
Name
)));
205
return string.Join(", ", allRemoteLibraryProviders.Select(e => e.Source.
Name
)
240
sourceInfo.Key.
Name
,
247
sourceInfo.Key.
Name
);
RestoreCommand\RestoreCommand.cs (1)
1132
string.Join(", ", restoreRequest.DependencyProviders.RemoteProviders.Where(i => i.IsHttp).Select(i => i.Source.
Name
)))));
RestoreCommand\VulnerabilityInformationProvider.cs (1)
58
public string SourceName => _source.PackageSource.
Name
;
SourcesCommands\SourceRunners.cs (4)
163
source.
Name
,
230
Environment.NewLine + string.Join(Environment.NewLine, httpPackageSources.Select(e => e.
Name
))));
284
existingSource = new Configuration.PackageSource(args.Source, existingSource.
Name
);
367
name = packageSource.
Name
;
Utility\PackageSourceProviderExtensions.cs (1)
21
f.
Name
.Equals(source, StringComparison.OrdinalIgnoreCase));
NuGet.Configuration (29)
PackageSource\PackageSource.cs (6)
45
hash.AddStringIgnoreCase(
Name
);
178
return new SourceItem(
Name
, Source, protocolVersion, allowInsecureConnections, disableTLSCertificateValidation);
188
return
Name
.Equals(other.
Name
, StringComparison.CurrentCultureIgnoreCase) &&
202
public override string ToString() =>
Name
+ " [" + Source + "]";
208
return new PackageSource(Source,
Name
, IsEnabled, IsOfficial, IsPersistable)
PackageSource\PackageSourceProvider.cs (22)
212
var feedNameMatching = loadedPackageSources.Any(p => p.
Name
.Equals(packageSource.
Name
, StringComparison.OrdinalIgnoreCase));
297
if (!packageSourceLookup.TryGetValue(packageSource.
Name
, out var previouslyAddedSource))
299
packageSourceLookup[packageSource.
Name
] = new IndexedPackageSource
376
if (string.Equals(name, packageSource.
Name
, StringComparison.OrdinalIgnoreCase))
396
if (packageSource.
Name
.StartsWith(namePrefix, StringComparison.OrdinalIgnoreCase))
398
names.Add(packageSource.
Name
);
584
packageSources.TryGetValue(source.
Name
, out var sourceToUpdate);
625
if (string.Equals(newSource.
Name
, existingSource.
Name
, StringComparison.OrdinalIgnoreCase))
655
if (string.Equals(newSource.
Name
, existingSource.
Name
, StringComparison.OrdinalIgnoreCase))
676
AddDisabledSource(newSource.
Name
, shouldSkipSave: true, isDirty: ref isDirty);
748
RemoveDisabledSource(source.
Name
, shouldSkipSave: true, isDirty: ref isDirty);
752
AddDisabledSource(source.
Name
, shouldSkipSave: true, isDirty: ref isDirty);
814
var existingSourceIsEnabled = existingDisabledSourcesLookup == null || existingDisabledSourcesLookup.TryGetValue(source.
Name
, out existingDisabledSourceItem);
816
if (existingSettingsLookup.TryGetValue(source.
Name
, out existingSourceItem))
820
existingCredentialsLookup?.TryGetValue(source.
Name
, out existingCredentialsItem);
839
existingSettingsLookup.Remove(source.
Name
);
901
if (existingSettingsLookup.TryGetValue(source.
Name
, out existingSourceItem))
918
existingSettingsLookup.Remove(source.
Name
);
1044
new AddItem(source.
Name
, source.Source));
Utility\SettingsUtility.cs (1)
423
if (!allSources.Any(s => s.IsEnabled && s.
Name
.Equals(source, StringComparison.OrdinalIgnoreCase)))
NuGet.DependencyResolver.Core (2)
Remote\RemoteWalkContext.cs (1)
83
if (StringComparer.OrdinalIgnoreCase.Equals(sources[j], current.Source.
Name
))
ResolverUtility.cs (1)
590
context.Logger.LogDebug(string.Format(CultureInfo.CurrentCulture, Strings.Log_MatchingSourceFoundForPackage, packageName, string.Join(",", remoteDependencyProviders.Select(provider => provider.Source.
Name
))));
NuGet.PackageManagement (6)
Audit\AuditChecker.cs (1)
189
string message = string.Format(CultureInfo.CurrentCulture, Strings.Warning_AuditSourceWithoutData, vulnerabilitySources[i].PackageSource.
Name
);
PackageDownloader.cs (1)
134
!configuredPackageSources.Contains(source.PackageSource.
Name
, StringComparer.OrdinalIgnoreCase))
PackagePreFetcher.cs (1)
205
fetchResult.Source.
Name
);
Resolution\ResolverGather.cs (2)
415
_context.Log.LogDebug(string.Format(CultureInfo.CurrentCulture, "Package {0} from source {1} gathered from cache.", request.Package.Id, request.Source.Source.PackageSource.
Name
));
570
!configuredPackageSources.Contains(source.Source.PackageSource.
Name
, StringComparer.OrdinalIgnoreCase))
Utility\UriHelper.cs (1)
112
.FirstOrDefault(p => p.
Name
.Equals(source, StringComparison.OrdinalIgnoreCase));
NuGet.Protocol (10)
Resources\VulnerabilityInfoResourceV3.cs (9)
65
string message = string.Format(Strings.VulnerabilityPage_CouldNotLoad, _sourceRepository.PackageSource.
Name
, vulnerabilityIndexUrl.OriginalString);
117
string message = string.Format(Strings.VulnerabilityPage_CouldNotLoad, _sourceRepository.PackageSource.
Name
, vulnerabilityPage.Url);
143
string message = string.Format(Strings.Vulnerability_TooManyPages, _sourceRepository.PackageSource.
Name
, indexEntries.Count, maxPages);
214
string message = string.Format(Strings.VulnerabilityPage_HasNoName, i, _sourceRepository.PackageSource.
Name
);
222
string message = string.Format(Strings.VulnerabilityPage_NameTooLong, i, maxNameLength, _sourceRepository.PackageSource.
Name
);
242
string message = string.Format(Strings.VulnerabilityPage_NameHasInvalidCharacters, i, _sourceRepository.PackageSource.
Name
);
249
string message = string.Format(Strings.VulnerabilityPage_NoUrl, entry.Name, _sourceRepository.PackageSource.
Name
);
256
string message = string.Format(Strings.VulnerabilityPage_UrlNotHttp, entry.Name, _sourceRepository.PackageSource.
Name
);
263
string message = string.Format(Strings.VulnerabilityPage_NameNotUnique, entry.Name, _sourceRepository.PackageSource.
Name
);
SourceRepository.cs (1)
86
return _source.
Name
;
NuGet.Resolver (1)
ResolverUtility.cs (1)
136
.Select(source => string.Format(CultureInfo.InvariantCulture, "'{0}'", source.
Name
)));