[Feature]Add package download command - #6804
#6804Merged
Nigusu-Allehu merged 15 commits intoOct 28, 2025
dev-feature-package-downloadNuGet/NuGet.Client:dev-feature-package-downloadfrom
dev-nyenework-packagedownloadNuGet/NuGet.Client:dev-nyenework-packagedownloadCopy head branch name to clipboard
Merged
[Feature]Add package download command #6804Nigusu-Allehu merged 15 commits intodev-feature-package-downloadNuGet/NuGet.Client:dev-feature-package-downloadfrom dev-nyenework-packagedownloadNuGet/NuGet.Client:dev-nyenework-packagedownloadCopy head branch name to clipboard
package download command #6804Nigusu-Allehu merged 15 commits into
dev-feature-package-downloadNuGet/NuGet.Client:dev-feature-package-downloadfrom
dev-nyenework-packagedownloadNuGet/NuGet.Client:dev-nyenework-packagedownloadCopy head branch name to clipboard
Conversation
Nigusu-Allehu
force-pushed
the
dev-nyenework-packagedownload
branch
3 times, most recently
from
September 24, 2025 22:28
bd2b8ed to
319cf63
Compare
Nigusu-Allehu
marked this pull request as ready for review
September 25, 2025 16:31
zivkan
reviewed
Sep 25, 2025
nkolev92
reviewed
Sep 29, 2025
zivkan
reviewed
Sep 30, 2025
jeffkl
self-requested a review
September 30, 2025 22:29
aortiz-msft
reviewed
Oct 1, 2025
aortiz-msft
reviewed
Oct 1, 2025
aortiz-msft
reviewed
Oct 1, 2025
Merged
3 tasks
Nigusu-Allehu
force-pushed
the
dev-nyenework-packagedownload
branch
from
October 15, 2025 23:12
d5aa961 to
80dce46
Compare
3 tasks
Nigusu-Allehu
force-pushed
the
dev-nyenework-packagedownload
branch
from
October 17, 2025 19:49
5636baf to
3a94836
Compare
Member
Author
|
@NuGet/nuget-client 👀 |
nkolev92
reviewed
Oct 23, 2025
nkolev92
left a comment
Member
There was a problem hiding this comment.
I just found one thing that I missed the previous review.
nkolev92
approved these changes
Oct 23, 2025
jeffkl
approved these changes
Oct 23, 2025
zivkan
approved these changes
Oct 23, 2025
3 tasks
aortiz-msft
reviewed
Oct 25, 2025
aortiz-msft
reviewed
Oct 25, 2025
aortiz-msft
reviewed
Oct 25, 2025
This was referenced Oct 27, 2025
aortiz-msft
approved these changes
Oct 28, 2025
Nigusu-Allehu
merged commit Oct 28, 2025
6d3aa38
into
dev-feature-package-download
16 of 17 checks passed
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Fixes: NuGet/Home#14608
Description
This PR implements the following design spec NuGet/Home#14495. It adds an implementation for the
dotnet package downloadcommand. Audit is not implemented in this PR, and will be added in a follow up PR.The command allows users to download NuGet packages directly. By default, packages are downloaded to the current working directory (CWD). Users can optionally specify a different output directory.
Version Resolution
The
ResolvePackageDownloadVersionmethod determines which version of a package to download from the provided sources:The method returns both the resolved
NuGetVersionand theSourceRepositoryit came from. If no valid version is found, an error is logged.Usage Example
PR Checklist
package downloadcommand Home#14558