nuget cheat sheet

nuget cheat sheet

I'm constantly forgetting these simple commands as its not everyday you use the package manager console. Also, they arent the most obvious commands, especially the first two.

List packages you have installed


List available packages containing the word foo

Get-Package -ListAvailable foo

Install package:

Install-Package foo

Uninstall or remove a package

Uninstall-Package foo -RemoveDependencies
Uninstall-Package Newtonsoft.Json -Version 6.0.4


Get-Help Uninstall-Package

Add other commonly used ones in the comments section and I will update the list.

Posted by: Wallace Turner
Last revised: 29 Mar, 2016 01:22 AM History


No comments yet. Be the first!

No new comments are allowed on this post.