Skip to content

,NuGet.Configuration.PackageSource,System.Boolean,System.Collections.Generic.IReadOnlyCollection{System.String},System.String,System.Threading.CancellationToken)} ,System.Collections.Generic.IReadOnlyCollection{NuGet.Frameworks.NuGetFramework},NuGet.Configuration.PackageSource,System.Boolean,System.Collections.Generic.IReadOnlyCollection{System.String},System.String,System.Threading.CancellationToken)} ,System.Collections.Generic.IReadOnlyCollection{NuGet.Frameworks.NuGetFramework},NuGet.Configuration.PackageSource,System.Boolean,System.Collections.Generic.IReadOnlyCollection{System.String},System.String,System.Threading.CancellationToken)}

NuGetPackageHelper.DownloadPackageFilesAndFolder(LibraryRange, IReadOnlyCollection?, PackageSource?, bool, IReadOnlyCollection?, string?, CancellationToken) method

Defined in

Type: NuGetPackageHelper Namespace: ReactiveMarbles.NuGet.Helpers Assembly: ReactiveMarbles.NuGet.Helpers.dll

Applies to

netstandard2.0

Overloads

  • 1. public static Task<InputAssembliesGroup> DownloadPackageFilesAndFolder(LibraryRange library, IReadOnlyCollection<NuGetFramework>? frameworks = null, PackageSource? nugetSource = null, bool getDependencies = true, IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, CancellationToken token = default(CancellationToken))
  • 2. public static Task<InputAssembliesGroup> DownloadPackageFilesAndFolder(IReadOnlyCollection<LibraryRange> libraryIdentities, IReadOnlyCollection<NuGetFramework>? frameworks = null, PackageSource? nugetSource = null, bool getDependencies = true, IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, CancellationToken token = default(CancellationToken))
  • 3. public static Task<InputAssembliesGroup> DownloadPackageFilesAndFolder(IReadOnlyCollection<PackageIdentity> packageIdentities, IReadOnlyCollection<NuGetFramework>? frameworks = null, PackageSource? nugetSource = null, bool getDependencies = true, IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, CancellationToken token = default(CancellationToken))

1. Overload

public static Task<InputAssembliesGroup> DownloadPackageFilesAndFolder(LibraryRange library, IReadOnlyCollection<NuGetFramework>? frameworks = null, PackageSource? nugetSource = null, bool getDependencies = true, IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, CancellationToken token = default(CancellationToken))

View source

Summary: Downloads the specified packages and returns the files and directories where the package NuGet package lives.

Parameters

NameTypeDescription
libraryLibraryRangeLibrary identity we want to match.
frameworks = nullIReadOnlyCollection?Optional framework parameter which will force NuGet to evaluate as the specified Framework. If null it will use .NET Standard 2.0.
nugetSource = nullPackageSource?Optional v3 nuget source. Will default to default nuget.org servers.
getDependencies = trueboolIf we should get the dependencies.
packageFolders = nullIReadOnlyCollection?Directories to package folders. Will be lib/build/ref if not defined.
packageOutputDirectory = nullstring?A directory where to store the files, if null a random location will be used.
token = nullCancellationTokenA cancellation token.

Returns: Task -- The directory where the NuGet packages are unzipped to. Also the files contained within the requested package only.

2. Overload

public static Task<InputAssembliesGroup> DownloadPackageFilesAndFolder(IReadOnlyCollection<LibraryRange> libraryIdentities, IReadOnlyCollection<NuGetFramework>? frameworks = null, PackageSource? nugetSource = null, bool getDependencies = true, IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, CancellationToken token = default(CancellationToken))

Summary: Downloads the specified packages and returns the files and directories where the package NuGet package lives.

Parameters

NameTypeDescription
libraryIdentitiesIReadOnlyCollectionLibrary identities we want to match.
frameworks = nullIReadOnlyCollection?Optional framework parameter which will force NuGet to evaluate as the specified Framework. If null it will use .NET Standard 2.0.
nugetSource = nullPackageSource?Optional v3 nuget source. Will default to default nuget.org servers.
getDependencies = trueboolIf we should get the dependencies.
packageFolders = nullIReadOnlyCollection?Directories to package folders. Will be lib/build/ref if not defined.
packageOutputDirectory = nullstring?A directory where to store the files, if null a random location will be used.
token = nullCancellationTokenA cancellation token.

Returns: Task -- The directory where the NuGet packages are unzipped to. Also the files contained within the requested package only.

3. Overload

public static Task<InputAssembliesGroup> DownloadPackageFilesAndFolder(IReadOnlyCollection<PackageIdentity> packageIdentities, IReadOnlyCollection<NuGetFramework>? frameworks = null, PackageSource? nugetSource = null, bool getDependencies = true, IReadOnlyCollection<string>? packageFolders = null, string? packageOutputDirectory = null, CancellationToken token = default(CancellationToken))

Summary: Downloads the specified packages and returns the files and directories where the package NuGet package lives.

Parameters

NameTypeDescription
packageIdentitiesIReadOnlyCollectionThe identity of the packages to find.
frameworks = nullIReadOnlyCollection?Optional framework parameter which will force NuGet to evaluate as the specified Framework. If null it will use .NET Standard 2.0.
nugetSource = nullPackageSource?Optional v3 nuget source. Will default to default nuget.org servers.
getDependencies = trueboolIf we should get the dependencies.
packageFolders = nullIReadOnlyCollection?Directories to package folders. Will be lib/build/ref if not defined.
packageOutputDirectory = nullstring?A directory where to store the files, if null a random location will be used.
token = nullCancellationTokenA cancellation token.

Returns: Task -- The directory where the NuGet packages are unzipped to. Also the files contained within the requested package only.