Creating a Local NuGet Repository with Dependency Bundles
September 1, 2011
I’m loving NuGet and it’s totally changed the way I look at bringing in external dependencies to my projects. I’ve written about that before.
Sometimes, you need to install several packages into a project. For example, when installing SpecFlow, you might also need a test framework like NUnit or MsTest, and perhaps an assertion or mocking framework.
If you want a package that includes your or your company’s preferences, and is not necessarily suitable for publishing to NuGet.org, here’s how to create a local package with dependencies only.
Strategy
Our approach is to create a package that contains only dependencies—no code—and store it in a local NuGet Repository.
Install NuGet Package Explorer
Most of the work will be done in the .nuspec file, an XML file that you can edit with any text editor or use the excellent NuGet Package...