-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support "download only" package scenario with PackageDownload #7339
Comments
Current spec is at https://github.com/NuGet/Client.Engineering/pull/91. |
nkolev92
added
Product:dotnet.exe
Type:Feature
and removed
Triage:NeedsTriageDiscussion
labels
Jan 8, 2019
This was referenced Jan 18, 2019
Closing the epic as the "original requirements" are fulfilled. The rest of the issues linked are future work. |
rrelyea
changed the title
Support "download only" package scenario
Support "download only" package scenario with PackageDownload
May 15, 2019
This was referenced Jan 31, 2020
2 tasks
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Keeping the original ask for context.
The design is as NuGet/Client.Engineering#91.
Tracking issues:
Post V1:
For .NET Core 3.0, there will be assets (such as Targeting Packs and Runtime Packs) that we want to acquire if necessary, but that we don't want to affect the NuGet restore graph. So we'd like to be able to provide a list of packages to restore which will be downloaded if they aren't already in the package cache, but that won't otherwise affect the restore operation.
These packages could be represented as a new item (such as
DownloadOnlyPackage
), or as metadata on the exsitingPackageReference
item (such asDownloadOnly="true"
).We imagine it would work as follows:
Download only package support is especially important for self-contained publish. The .NET Core runtime assets required for a self-contained publish depend on the RID being published for as well as the latest patch of .NET Core. Currently, a command line self-contained publish invalidates the assets file, and a self-contained publish from Visual Studio restores using a different assets path. Neither case is ideal and both of them result in extra non-noop restores running. "Download only" package support would allow us to tell NuGet to download the correct runtime pack when restoring for a self-contained publish without affecting the assets file that was generated from the restore during build.
The text was updated successfully, but these errors were encountered: