使用 Visual Studio 2015 Update 1 从在线存储库更新具有依赖项的本地包时,NuGet 无法解析依赖项 [英] NuGet can't resolve a dependency when updating a local package with dependencies from online repositories using Visual Studio 2015 Update 1
问题描述
这与这个问题中的问题非常相似:本地 NuGet 包依赖项 - 从官方 Nuget 提要解析?
This is very similar to the issue in this question: Local NuGet package dependencies - resolve from official Nuget feed?
我有一个本地包,其最新更新现在依赖于 NuGet.org 的 EnterpriseLibrary.TransientFaultHandling
.当我尝试更新包时,出现以下错误:
I have a local package whose latest update now has a dependency of EnterpriseLibrary.TransientFaultHandling
from NuGet.org. When I attempt to update the package, I get the following error:
无法解析依赖'EnterpriseLibrary.TransientFaultHandling'.使用的来源:nuget.org"、(我的公司)"、Microsoft 和 .NET".
Unable to resolve dependency 'EnterpriseLibrary.TransientFaultHandling'. Source(s) used: 'nuget.org', '(My Company)', 'Microsoft and .NET'.
在 VS 2013 中,它更新没有任何问题.在 VS 2015 中,作为一种解决方法,我必须手动安装依赖项,然后才能进行更新.
In VS 2013, it updates without any issue. In VS 2015, as a workaround, I have to manually install the dependency and then I can do the update.
我是否遗漏了什么或者这只是 VS 2015 中的一个错误?
Am I missing something or is this just a bug in VS 2015?
推荐答案
最新的 NuGet 包管理器 (3.4.1.807) 修复了这个问题.
The latest NuGet Package Manager (3.4.1.807) fixes this issue.
将 Package Source
设置为 All
,它们将在不同的包源中更新.
Set the Package Source
to All
and they will update across different package sources.
这篇关于使用 Visual Studio 2015 Update 1 从在线存储库更新具有依赖项的本地包时,NuGet 无法解析依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!