Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nuget“;“从旧到新”;更新失败_Nuget - Fatal编程技术网

Nuget“;“从旧到新”;更新失败

Nuget“;“从旧到新”;更新失败,nuget,Nuget,我想更新Asp.NET Web Api 2.2的项目(我的项目是Web Api 1.0)。但是Nuget并没有更新所有的包,我也没有发现这个问题的解决方法 你能帮我解决这个问题吗 失败文本: 将“Microsoft.AspNet.WebApi.Core 4.0.30506.0”更新为“Microsoft.AspNet.WebApi.Core 5.2.0”失败。找不到与“Microsoft.AspNet.WebApi.Core 5.2.0”兼容的“Strathweb.CacheOutput”版本

我想更新Asp.NET Web Api 2.2的项目(我的项目是Web Api 1.0)。但是Nuget并没有更新所有的包,我也没有发现这个问题的解决方法

你能帮我解决这个问题吗

失败文本:

将“Microsoft.AspNet.WebApi.Core 4.0.30506.0”更新为“Microsoft.AspNet.WebApi.Core 5.2.0”失败。找不到与“Microsoft.AspNet.WebApi.Core 5.2.0”兼容的“Strathweb.CacheOutput”版本


看起来(0.5.0)包的当前版本已固定为WebApi 4.0.30506

您有两种选择:

  • 请与包所有者联系,并要求他们允许包与更新版本的WebApi一起使用
  • 在VisualStudio中使用NuGet的命令行,通过指定参数强制更新包
无论哪种方式,您都需要对Microsoft.AspNet.WebApi.Core 4.0.30506.0->5.2.0进行绑定重定向,NuGet可能会根据您使用的选项将其添加到您的web.config中