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) ...
Get Pro NuGet now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.