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

suggestion: dotnet.exe support package upgrade & version check #6054

Closed
livarcocc opened this issue Oct 18, 2017 · 9 comments
Closed

suggestion: dotnet.exe support package upgrade & version check #6054

livarcocc opened this issue Oct 18, 2017 · 9 comments
Labels
Platform:Xplat Priority:2 Issues for the current backlog. Product:NuGet.exe NuGet.exe
Milestone

Comments

@livarcocc
Copy link

From @kjbetz on August 20, 2017 13:59

Feature request.

Add command to upgrade packages and/or do a version check on packages used in .csproj

Suggest: dotnet package upgrade and/or dotnet package check

Make it interactive to be able to update .csproj

Idea similiar to this: https://www.npmjs.com/package/npm-check

Copied from original issue: dotnet/cli#7483

@livarcocc
Copy link
Author

From @kjbetz on October 18, 2017 12:24

I was using yarn last night and saw that this is an included feature for them. yarn upgrade and yarn upgrade-interactive

https://yarnpkg.com/lang/en/docs/cli/upgrade/

https://yarnpkg.com/lang/en/docs/cli/upgrade-interactive/

Definitely very handy! Very much needed in my opinion for .NET Core CLI users.

@livarcocc
Copy link
Author

From @kjbetz on October 18, 2017 12:33

I suggest a dotnet package upgrade and dotnet package upgrade-interactive or dotnet package upgrade --interactive

As well as some of the other features listed in the yarn... we used --latest and it was very handy as we use absolute/exact version numbers.

@livarcocc
Copy link
Author

I believe there is an issue under nuget/home for this already. I will move this issue there and have them close this one as a dup if that's the case.

@kjbetz
Copy link

kjbetz commented Oct 18, 2017

I'm surprised this is closed... is this not a dotnet CLI request? Just as there is a dotnet add and dotnet remove

Do those call nuget under the covers?

@rrelyea rrelyea added this to the Backlog milestone Oct 18, 2017
@rrelyea rrelyea added Priority:2 Issues for the current backlog. Product:NuGet.exe NuGet.exe Platform:Xplat labels Oct 18, 2017
@rrelyea rrelyea changed the title Add package upgrade, version check suggestion: dotnet.exe support package upgrade & version check Oct 18, 2017
@livarcocc
Copy link
Author

@kjbetz the issue was not closed, but rather moved to a more appropriate repo. The dotnet add and dotnet remove commands, for packages, while surfaced in the CLI, are actually implemented by NuGet. We also have an ongoing conversation with NuGet about a dotnet update command. So, it makes sense to have it here.

@kjbetz
Copy link

kjbetz commented Oct 18, 2017

@livarcocc Thanks Livar, I appreciate the response. I think I understand more clearly now and see that it was labeled XPLAT, which is important. Thanks!

@mishra14
Copy link
Contributor

mishra14 commented Nov 9, 2017

@kjbetz This is a dupe of #4103 and #4102.

We want to add support for dotnet list package and dotnet update package commands. In the meantime you can use dotnet add package <package_id> --version <new_version> and that will update the package reference in the csproj file.

@mishra14 mishra14 closed this as completed Nov 9, 2017
@kjbetz
Copy link

kjbetz commented Nov 14, 2017

@mishra14 Ok... but how do you know what the <new_version> is? I really suggest checking out how yarn has taken care of this, including the interactive upgrade. I just spent another time looking through my .csproj and searching nuget.org to see what the latest package versions were. There has to be a better way.

@rlm95
Copy link

rlm95 commented Nov 15, 2017

I know previously on dotnet sdk 2.0.0 it worked where you were able to do dotnet add package <package_id> and it would automatically update to the latest version. On dotnet sdk 2.0.2 it no longer works like this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform:Xplat Priority:2 Issues for the current backlog. Product:NuGet.exe NuGet.exe
Projects
None yet
Development

No branches or pull requests

5 participants