Testing the NuGet package locally

When you are done building your final NuGet package, you may want to push/upload it to the NuGet gallery. It could be the gallery hosted at nuget.org, a third-party gallery, or a local repository, but before that, you may want to test it locally. This you can achieve by creating a local package store.

To create the local package store, open the NuGet Package Manager Settings by navigating to the Visual Studio menu hierarchy, Tools | NuGet Package Manager | Package Manager Settings, as shown in the following screenshot:

From the left-hand navigation panel, navigate to NuGet Package Manager | Package Sources ...

Get Mastering Visual Studio 2017 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.