Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Added support for PackageDownload items #895

Conversation

david-driscoll
Copy link
Contributor

✨ What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Feature!

⤵️ What is the current behavior?

Currently PackageDownload is not a supported target as supported element that can contain a version. (This is seriously a thing)

🆕 What is the new behavior (if this is a feature change)?

Adds support for PackageDownload. The behavior is very similar to PackageReference except that the version must be defined as an exact version [1.0.0] instead of just 1.0.0.

💥 Does this PR introduce a breaking change?

No

🐛 Recommendations for testing

Testing with and without PackageDownload.

📝 Links to relevant issues/docs

This is seriously a thing, today Nuke is using it ensure that packages are downloaded, but they are not implicitly referenced. This is used in the Nuke context to ensure that the binaries exist. I could not however find any specific documentation on this behavior, but it is a thing.

https://github.com/NuGet/NuGet.Client/blob/f5916a527c442f896f787c593252b37a345da835/src/NuGet.Core/NuGet.Build.Tasks/NuGet.targets#L845-L850

🤔 Checklist before submitting

  • All projects build
  • Relevant documentation was updated
    • Are there any docs to update around this?

@david-driscoll david-driscoll force-pushed the feature/package-download branch from cb7ef21 to d1514b7 Compare November 1, 2019 03:28
@stale
Copy link

stale bot commented May 10, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label May 10, 2020
@AnthonySteele
Copy link
Member

We are looking into this PR
Apologies for the delay, we are picking up again and clearing stale issues, but keeping this one.

@stale stale bot removed the wontfix label May 13, 2020
@skolima
Copy link
Collaborator

skolima commented May 13, 2020

NuGet implementation details: NuGet/Home#7339

@david-driscoll
Copy link
Contributor Author

Closing in favor of #986

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants