,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))
Summary: Downloads the specified packages and returns the files and directories where the package NuGet package lives.
Parameters
| Name | Type | Description |
|---|---|---|
library | LibraryRange | Library identity we want to match. |
frameworks = null | IReadOnlyCollection | Optional framework parameter which will force NuGet to evaluate as the specified Framework. If null it will use .NET Standard 2.0. |
nugetSource = null | PackageSource? | Optional v3 nuget source. Will default to default nuget.org servers. |
getDependencies = true | bool | If we should get the dependencies. |
packageFolders = null | IReadOnlyCollection | Directories to package folders. Will be lib/build/ref if not defined. |
packageOutputDirectory = null | string? | A directory where to store the files, if null a random location will be used. |
token = null | CancellationToken | A cancellation token. |
Returns: Task
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
| Name | Type | Description |
|---|---|---|
libraryIdentities | IReadOnlyCollection | Library identities we want to match. |
frameworks = null | IReadOnlyCollection | Optional framework parameter which will force NuGet to evaluate as the specified Framework. If null it will use .NET Standard 2.0. |
nugetSource = null | PackageSource? | Optional v3 nuget source. Will default to default nuget.org servers. |
getDependencies = true | bool | If we should get the dependencies. |
packageFolders = null | IReadOnlyCollection | Directories to package folders. Will be lib/build/ref if not defined. |
packageOutputDirectory = null | string? | A directory where to store the files, if null a random location will be used. |
token = null | CancellationToken | A cancellation token. |
Returns: Task
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
| Name | Type | Description |
|---|---|---|
packageIdentities | IReadOnlyCollection | The identity of the packages to find. |
frameworks = null | IReadOnlyCollection | Optional framework parameter which will force NuGet to evaluate as the specified Framework. If null it will use .NET Standard 2.0. |
nugetSource = null | PackageSource? | Optional v3 nuget source. Will default to default nuget.org servers. |
getDependencies = true | bool | If we should get the dependencies. |
packageFolders = null | IReadOnlyCollection | Directories to package folders. Will be lib/build/ref if not defined. |
packageOutputDirectory = null | string? | A directory where to store the files, if null a random location will be used. |
token = null | CancellationToken | A cancellation token. |
Returns: Task