Skip to content

helgihaf/NuGetSurvival

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

NuGet Survival Guide

Quick and dirty cheat sheet for NuGet commands. All commands should be run in the Visual Studio Package Manager Console window.

Important!

Most commands assume that:

  1. You are in the base directory of the solution (where your .sln file is).
  2. You have selected the correct Package Source (All is recommended).
  3. You have selected the correct Default project.

Install Package

Reference

    Install-Package Newtonsoft.Json
    Install-Package Newtonsoft.Json -IncludePrerelease
    Install-Package Newtonsoft.Json -Version 6.0.1

Reinstall Packages – when something goes wrong :-)

Reference

    # Reinstall and fixes references to all packages in solution
    Update-Package -Reinstall
    
    # Reinstall and fixes references to a single package
    Update-Package -Id Newtonsoft.Json –Reinstall

Update Package to Lastest Version

Reference

    # Updates all packages in all projects in the solution to latest version
    # Based on hard experience: Only do this if really sure what you are doing.
    Update-Package
    
    # Updates single package to latest version
    Update-Package Newtonsoft.Json

About

Quick and dirty cheat sheet for NuGet commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published