Must know commands for Nuget

Here are 4 commands for nuget. These are the commands that I use most often - I rarely use any other. These are also some the most simple commands there is. But using nuget for 5+ years I still find that it is these that I use the most.

  • update-package <Package-Name> Updates the package in all projects
  • install-package installs the package in a single project
  • update-package updates all packages in all projects
  • update-package <Package-Name> -ReInstall Reinstalls the package in all projects. This also readds missing references to projects.

I also added a post on how to update packages starting with something specific. This command is great if you prefix your own packages or want to update and external library split over several packages. I also use this command once in a while