Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local NuGet package dependencies - resolve from official Nuget feed?

I've created my own NuGet package containing some libraries that my team will be using for an upcoming project. In the .nuspec file, I've defined the following dependencies:

<dependencies>
 <dependency id="Castle.Core" version="2.5.2" />
 <dependency id="Castle.Windsor" version="2.5.2" />
</dependencies>

However, when I try to install the package from a local folder using Add Library Reference, I get an error saying "Unable to resolve dependency 'Castle.Core (>= 2.5.2)'"

Can I somehow persuade NuGet to resolve dependencies by searching the online repositories?

like image 776
Graffen Avatar asked Feb 10 '11 11:02

Graffen


1 Answers

You need to select the "All" source.

like image 107
davidfowl Avatar answered Oct 11 '22 07:10

davidfowl