Skip to content
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

nuget.exe update should support project.json #1276

Closed
ericstj opened this issue Aug 28, 2015 · 9 comments
Closed

nuget.exe update should support project.json #1276

ericstj opened this issue Aug 28, 2015 · 9 comments
Labels
Priority:2 Issues for the current backlog. Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Feature
Milestone

Comments

@ericstj
Copy link

ericstj commented Aug 28, 2015

This functionality is essential to test nuget packages.
We want to have checked in test projects that depend on some minimum version of a packages.

  1. We'll update just our test package to latest, simulating single update of just that package.
  2. We'll update everything in the project to latest, simulating an end user full upgrade.

* versioning in the project.json does not achieve either of these scenarios. Previously we used nuget update. Now that nuget3 has dropped most of the things that write to the csproj this should be even easier than before. Please bring back nuget.exe update.

We can't really do this ourselves easily because it involves nuget making queries to the feeds to determine what version to update to.

@yishaigalatzer
Copy link

What is * versioning not supporting it?

Use 2.0.* for example ?

@ericstj
Copy link
Author

ericstj commented Aug 28, 2015

That won't pick up pre-release.

@yishaigalatzer
Copy link

Perhaps that's what we should fix?

Cc @davidfowl

I'm not really following why '*' doesn't work. What exactly is the test trying to do? * works for the latest with prerelease.

@ericstj
Copy link
Author

ericstj commented Aug 28, 2015

4.0.0-* will pick up the latest pre-release constrained to 4.0.0.
4.0.* will only pick up the latest stable constrained to 4.0.
4.* will only pick up the latest stable constrained to 4.
4.- is considered invalid.

@yishaigalatzer
Copy link

You can also use just *?

@ericstj
Copy link
Author

ericstj commented Aug 28, 2015

'*' will only pick up latest stable with no constraints on 3-part version.

@yishaigalatzer
Copy link

So if w had support for

*-beta*
*-*

Etc

That will solve your problem?

@ericstj
Copy link
Author

ericstj commented Aug 28, 2015

Yeah, here are the ones I think we'd use: '-', '4.-', '4.0.-'. I can imagine other folks using a branch specifier in the pre-release string so you'd probably want to support something like '-beta-' where it would permit latest pre-release so long as it matched the partial release string.

@yishaigalatzer yishaigalatzer added this to the 3.3.0-commandline milestone Sep 10, 2015
@yishaigalatzer yishaigalatzer modified the milestones: 3.4, 3.3.0-commandline Nov 16, 2015
@yishaigalatzer yishaigalatzer added the Priority:2 Issues for the current backlog. label Nov 16, 2015
@yishaigalatzer yishaigalatzer modified the milestones: Client-VNext, 3.4 Feb 22, 2016
@harikmenon harikmenon modified the milestones: Client-VNext, Future Apr 19, 2016
@nkolev92
Copy link
Member

Duplicate of #4103

@nkolev92 nkolev92 marked this as a duplicate of #4103 Dec 19, 2017
@nkolev92 nkolev92 modified the milestones: Future-2, 4.6 Dec 19, 2017
@nkolev92 nkolev92 added the Resolution:Duplicate This issue appears to be a Duplicate of another issue label Dec 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:2 Issues for the current backlog. Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Feature
Projects
None yet
Development

No branches or pull requests

4 participants