本地 NuGet 包依赖项 - 从官方 Nuget 提要解析? [英] Local NuGet package dependencies - resolve from official Nuget feed?
本文介绍了本地 NuGet 包依赖项 - 从官方 Nuget 提要解析?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了自己的 NuGet 包,其中包含我的团队将用于即将开展的项目的一些库.在 .nuspec 文件中,我定义了以下依赖项:
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>
但是,当我尝试使用添加库引用从本地文件夹安装包时,收到错误消息无法解析依赖关系‘Castle.Core (>= 2.5.2)’"
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)'"
我可以通过搜索在线存储库以某种方式说服 NuGet 解决依赖关系吗?
Can I somehow persuade NuGet to resolve dependencies by searching the online repositories?
推荐答案
您需要选择全部"来源.
You need to select the "All" source.
这篇关于本地 NuGet 包依赖项 - 从官方 Nuget 提要解析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文