1 instantiation of NuGetPackage
aspire (1)
DotNetCliRunner.cs (1)
742
foundPackages.Add(new
NuGetPackage
31 references to NuGetPackage
aspire (31)
Commands\AddCommand.cs (13)
196
private async Task<(string FriendlyName,
NuGetPackage
Package)> GetPackageByInteractiveFlow(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> possiblePackages, string? preferredVersion, CancellationToken cancellationToken)
225
private static (string FriendlyName,
NuGetPackage
Package) GenerateFriendlyName(
NuGetPackage
package)
250
Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken);
251
Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationVersionAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken);
256
public virtual async Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationVersionAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken)
267
public virtual async Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken)
277
private static string PackageNameWithFriendlyNameIfAvailable((string FriendlyName,
NuGetPackage
Package) packageWithFriendlyName)
Commands\NewCommand.cs (4)
116
Task<
NuGetPackage
> PromptForTemplatesVersionAsync(IEnumerable<
NuGetPackage
> candidatePackages, CancellationToken cancellationToken);
124
public virtual async Task<
NuGetPackage
> PromptForTemplatesVersionAsync(IEnumerable<
NuGetPackage
> candidatePackages, CancellationToken cancellationToken)
DotNetCliRunner.cs (3)
31
Task<(int ExitCode,
NuGetPackage
[]? Packages)> SearchPackagesAsync(DirectoryInfo workingDirectory, string query, bool prerelease, int take, int skip, string? nugetSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken);
651
public async Task<(int ExitCode,
NuGetPackage
[]? Packages)> SearchPackagesAsync(DirectoryInfo workingDirectory, string query, bool prerelease, int take, int skip, string? nugetSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
719
var foundPackages = new List<
NuGetPackage
>();
NuGet\NuGetPackageCache.cs (8)
14
Task<IEnumerable<
NuGetPackage
>> GetTemplatePackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken);
15
Task<IEnumerable<
NuGetPackage
>> GetIntegrationPackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken);
16
Task<IEnumerable<
NuGetPackage
>> GetCliPackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken);
24
public async Task<IEnumerable<
NuGetPackage
>> GetTemplatePackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken)
36
public async Task<IEnumerable<
NuGetPackage
>> GetIntegrationPackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken)
41
public async Task<IEnumerable<
NuGetPackage
>> GetCliPackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken)
55
internal async Task<IEnumerable<
NuGetPackage
>> GetPackagesAsync(DirectoryInfo workingDirectory, string query, bool prerelease, string? source, CancellationToken cancellationToken)
61
var collectedPackages = new List<
NuGetPackage
>();
Templating\DotNetTemplateFactory.cs (1)
326
var
selectedPackage = await prompter.PromptForTemplatesVersionAsync(orderedCandidatePackages, cancellationToken);
Utils\CliUpdateNotifier.cs (2)
62
private static SemVersion? GetNewerVersion(SemVersion currentVersion, IEnumerable<
NuGetPackage
> availablePackages)
67
foreach (
var
package in availablePackages)