1 instantiation of NuGetPackage
aspire (1)
DotNetCliRunner.cs (1)
692
foundPackages.Add(new
NuGetPackage
27 references to NuGetPackage
aspire (27)
Commands\AddCommand.cs (13)
192
private async Task<(string FriendlyName,
NuGetPackage
Package)> GetPackageByInteractiveFlow(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> possiblePackages, string? preferredVersion, CancellationToken cancellationToken)
221
private static (string FriendlyName,
NuGetPackage
Package) GenerateFriendlyName(
NuGetPackage
package)
246
Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken);
247
Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationVersionAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken);
252
public virtual async Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationVersionAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken)
263
public virtual async Task<(string FriendlyName,
NuGetPackage
Package)> PromptForIntegrationAsync(IEnumerable<(string FriendlyName,
NuGetPackage
Package)> packages, CancellationToken cancellationToken)
273
private static string PackageNameWithFriendlyNameIfAvailable((string FriendlyName,
NuGetPackage
Package) packageWithFriendlyName)
Commands\NewCommand.cs (4)
97
Task<
NuGetPackage
> PromptForTemplatesVersionAsync(IEnumerable<
NuGetPackage
> candidatePackages, CancellationToken cancellationToken);
105
public virtual async Task<
NuGetPackage
> PromptForTemplatesVersionAsync(IEnumerable<
NuGetPackage
> candidatePackages, CancellationToken cancellationToken)
DotNetCliRunner.cs (3)
28
Task<(int ExitCode,
NuGetPackage
[]? Packages)> SearchPackagesAsync(DirectoryInfo workingDirectory, string query, bool prerelease, int take, int skip, string? nugetSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken);
601
public async Task<(int ExitCode,
NuGetPackage
[]? Packages)> SearchPackagesAsync(DirectoryInfo workingDirectory, string query, bool prerelease, int take, int skip, string? nugetSource, DotNetCliRunnerInvocationOptions options, CancellationToken cancellationToken)
669
var foundPackages = new List<
NuGetPackage
>();
NuGet\NuGetPackageCache.cs (6)
12
Task<IEnumerable<
NuGetPackage
>> GetTemplatePackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken);
13
Task<IEnumerable<
NuGetPackage
>> GetIntegrationPackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken);
22
public async Task<IEnumerable<
NuGetPackage
>> GetTemplatePackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken)
34
public async Task<IEnumerable<
NuGetPackage
>> GetIntegrationPackagesAsync(DirectoryInfo workingDirectory, bool prerelease, string? source, CancellationToken cancellationToken)
39
internal async Task<IEnumerable<
NuGetPackage
>> GetPackagesAsync(DirectoryInfo workingDirectory, string query, bool prerelease, string? source, CancellationToken cancellationToken)
45
var collectedPackages = new List<
NuGetPackage
>();
Templating\DotNetTemplateFactory.cs (1)
324
var
selectedPackage = await prompter.PromptForTemplatesVersionAsync(orderedCandidatePackages, cancellationToken);