Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8: Extending NuGet > Extending the Package Manager Console

Extending the Package Manager Console

So far, you’ve seen how you can extend the NuGet command line. While handy, NuGet extensions of this type only worked from the command prompt. What about extending Visual Studio? The Package Manager Console is just a PowerShell console with additional variables like $dte, an object representing Visual Studio itself.

NuGet already speeds up your development in terms of dependency management, but having the Package Manager Console at hand inside Visual Studio makes NuGet incredibly powerful for extending your Visual Studio environment as well.

This section will guide you through the creation of PowerShell cmdlets that can be run in the Package Manager Console. It starts with some simple cmdlets that (of course) will be distributed through NuGet. After that, we’ll create a more advanced cmdlet that also includes tab completion to make using the cmdlet even easier.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint