Repository Management with Nexus

16.4. NuGet Virtual Repositories

If you have deployed NuGet packages to a Maven repository in the past you can expose them to Visual Studio by creating a Virtual repository and setting the Format to NuGet Shadow Repository. The setup displayed in Figure 16.6, “A Virtual NuGet Repository for the Releases Repository” shows a virtual repository set up to expose the content of the regular Maven Releases repository in the form of a NuGet repository, so that NuGet can access any NuGet packages deployed to the releases repository.

figs/web/nuget-virtual-releases.png

Figure 16.6. A Virtual NuGet Repository for the Releases Repository


The NuGet feed is immediately updated as packages are deployed or deleted from the shadowed repository. If for some reason you ever need to rebuild the feed for a virtual NuGet repository, you can manually schedule a Synchronize Shadow Repository task.