Skip to main content

NuGet Virtual Repositories in Nexus Repository 2

Nexus Repository 2

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 as documented in Managing Repositories and setting the Provider to NuGet. The setup displayed in Figure 15.5, “A Virtual NuGet Repository for the Releases Repository” shows a virtual repository configured to expose the content of the regular Maven Releases repository as a NuGet repository, so that NuGet can access any NuGet packages deployed to the releases repository.


Figure 15.5. A Virtual NuGet Repository for the Releases Repository

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