How to specify a dependency to a remote package

Feb 23, 2011 at 12:33 PM

Hello guys.

How can I specify a dependency on a package located in a remote store? For instance, I'm building my own local packages. One of them requires nhibernate. How can i specify that in the nuspec file? I've tried this:

<?xml version="1.0"?>
<package xmlns:xsd="" xmlns:xsi="">
<metadata xmlns="">
<authors>Luis Abreu</authors>
<owners>Luis Abreu</owners>
<description>Sra core package for databse helpers. Contains code for assisting with simple ADO.NET and NH code</description>
<tags>Repository ADO.NET NH</tags>
<dependency id="NHibernate" version="" />
<dependency id="FluentNHibernate" version="" />
<dependency id="Sra.Core" version="" />

after depoying my package, I get an error while trying to install it saying that it's unable to solve the NHIbernate package reference.

What am I doing wrong?

Feb 23, 2011 at 5:07 PM

Make sure that the repository containing NHibernate (the default NuGet feed has it) is added as a package source and you point to the package source labeled "All". This would allow NuGet to resolve the dependency.

Feb 23, 2011 at 5:20 PM


If I am understanding you correctly, I created a work item for this issue:

Does that match up with what you're having a problem with?  If so, vote it up!  :)


Feb 24, 2011 at 8:29 AM

Yep, that's it.

not really intuitive if you ask me...