To install a specific version of a package from the command line, you need to use the -Version parameter. This tutorial starts by look at the versions available on the Nuget Gallery, then drills into the specifics of the version parameter. Also included in this tutorial is a brief look at how to create PowerShell scripts that use variable and loops.
- [Voiceover] To install a specific version…of a package from the command line…you need to use the version parameter.…Let's start by looking at all the versions…available for a package in the NuGet gallery.…As you know, I've been using the same packages…repeatedly in my demos.…I think it's time to look at…some different NuGet packages.…For this demonstration I'll look…for a package named Noda Time.…Noda Time is an alternative date and time…API for .NET.…It represents a more complete way…of thinking about date time information.…I've got a lot of matches in my results.…The one I want is the top item,…the one with the Noda Time ID.…
The rest of the results are not necessary.…I'll filter them by using the exact match parameter.…So I get back the version with the highest number.…So the highest number currently…in the gallery is 2.0.0.…I know there are more versions available…I just can't see them yet.…I'll use the all versions parameter.…At first glance, this looks like the way…to get a list of versions.…But they are mushed together into this string.…
- What is a package manager?
- Installing NuGet in Visual Studio
- Installing and managing packages
- Updating packages
- Working with PowerShell and NuGet
- Finding packages with NuGet Gallery and ASP.NET MVC
- Using Package Restore
- Using the Chocolatey machine packet manager
- Using Boxstarter for creating installation packages
- Using OneGet/PackageManagement
- Creating, publishing, and installing a custom NuGet package
Skill Level Beginner
1. Package Managers Explained
2. Explore NuGet in Visual Studio 2015
3. Use the NuGet PowerShell Integration
Work with PowerShell3m 5s
4. Interesting and Useful NuGet Packages
5. Use Package Restore
6. Leverage NuGet with Chocolatey
7. Leverage NuGet with Other Tools
8. Additional Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.