开发者

Local NuGet package dependencies - resolve from official Nuget feed?

开发者 https://www.devze.com 2023-02-10 05:01 出处:网络
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:

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>
 &l开发者_C百科t;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?


You need to select the "All" source.

0

精彩评论

暂无评论...
验证码 换一张
取 消