❔ Update all packages in project or sln
With the Nuget Package Manager console, you can update all packages in a project (or solution I think) with
which is useful in general but also useful for me especially with the
Include-Prerelease
switch
can you do the same thing with the dotnet CLI?
Does not work:
10 Replies
I don't think the built-in dotnet tooling supports this, but you install this tool:
And then you can run:
Not sure about pre-release
Oh it has a
--pre-release
flagdon't
update package
updates only the specific project packages if executed in the project folder?Is
dotnet update
a thing? It doesn't exist in the SDK I'm using.dotnet nuget update
at least, i believe it's that one
I don't think that is for updating packages to new versions.
Neither
dotnet nuget update
or dotnet nuget upgrade
seem to allow upgrading package versions.yeah, true, it's not the correct command
it would be just
nuget update
The tool I showed seems to work great, I would just use that.
Thank you for the response
where is the package directory for
dotnet tool
?
I saw dotnet-outdated-tool
online but I assumed it was an annoying thing I'd have to install with an exe or something that covers what the SDK might already have
but as a cli tool i can install from the cli that's great
but im curious where the default package registry is fromI think it's nuget.org
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.