Sdk: How to update referenced package versions from CLI

Created on 3 Feb 2018  路  6Comments  路  Source: dotnet/sdk

Steps to reproduce

1) Type dotnet help

Expected behavior

1) Expect to see dotnet update or similar command to update referenced packages. Something equivalent to Visual Studio's GUI that allows upgrading packages.

Actual behavior

1) After much searching, I can't find any command to update the package version.

Other thoughts

Currently there is no way that I can tell to update package versions when running on Linux, except to delete the reference and add it back. I can set the the Version attribute to equal "*", but that does not bind to a predictable version.

Is there a way to list which packages are upgradeable that I missed?

If there is not such a command, is it desired?

Most helpful comment

All 6 comments

There is no such command today.

I believe this is in the NuGet backlog.

cc @richlander this is a feature request that we had to NuGet for a while: a dotnet update package command.

I will move this issue to NuGet.

This issue was moved to NuGet/Home#6540

Thanks, @JonCanning. Unfortunately, we use Powershell at work. If I decide to port it over, I'll post link to a gist, here.

No problem, have added a ps version too!

Hah! Just circled back, this morning, and you beat me to it. Thanks, again!

Was this page helpful?
0 / 5 - 0 ratings