In this chapter, we’ve changed our perspective and looked at NuGet as being a protocol for distributing packages. We’ve leveraged techniques used by all NuGet components: using its central assembly,
NuGet.Core, we have created a plug-in system for an ASP.NET MVC application which makes use of NuGet’s features for working with feeds (or repositories) and installing and uninstalling packages based on such feed.
This technique is also used by NuGet Package Explorer, as you saw in Chapter 8. Plug-ins for NuGet Package Explorer are distributed through a NuGet feed to which you can contribute your NuGet plug-ins.
You’ve also seen how the NuGet command line tool is, in essence, also using this technique: when invoking the
nuget update -self ...