Working with NuGet CLI

I have been working with .NET Core lately and I am pretty excited about the future of .NET running outside of just windows. Ever since my first tech job at an enterprise healthcare company, I have had a soft spot in my heart for C#. I am also a huge fan of Visual Studio Code compared to the big ball of bloat that is Visual Studio proper, vscode is a refreshing take on a simple IDE.

The one thing that is not as intuitive as I thought was working with NuGet outside of Visual Studio.

NuGet is the package manager for the Microsoft development platform including .NET

Source: NuGet Gallery | Home

The easiest way to install third party libraries and tooling is with Nuget. Buried deep within the documentation is an executable called Nuget CLI that you can download to use nuget completely outside of Visual Studio. This supposedly works on OS X and Linux as well.

The quick and dirty way to get started is:

  1. Download the latest version of the Nuget CLI
  2. Copy it somewhere that you don’t mind being in your PATH. I have a special folder called C:\DevTools
  3. Open up a command prompt and run the nuget command
Nuget Running in Command Prompt

Nuget Running in Command Prompt

 

 

If you made it this far, you should probably follow me on twitter. 🙂

This entry was posted in Hacking and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *