Updating nuget packages in all projects in a solution

前端 未结 3 1386
忘掉有多难
忘掉有多难 2021-02-06 22:43

I have a .net solution (say A) with multiple projects(say B,C,D). I want to update all nuget packages for all projects in the solution. I know I can update nuget packages using

3条回答
  •  难免孤独
    2021-02-06 23:49

    First you have to restore all packages using nuget restore solution_file.sln then update them to latest version by executing nuget update solution_file.sln.

    Read more about nuget command line

    Updated link to Nuget command line documentation

    Nuget Package Manager Console documentation (Visual Studio for Windows)

    Edit: Previous link is dead. Added working equivalent and bonus Package Manager Console link.

提交回复
热议问题