Nuget 问题检测到软件包降级:Microsoft.Maui.Controls 从 8.0.6 到 8.0.3

问题描述 投票:0回答:1

我已经很长一段时间没有遇到 nuget 问题了(VS2010),但在过去的 1/2 年里我再次与这些问题作斗争。这次我好像过不了了。

这是一个针对 .net 8 的 .net maui 程序。

我可以将 Microsoft.Maui.Controls 从 8.0.3 更新到 8.0.6,或者我可以将 Microsoft.Maui.Controls.Compatibility 从 8.0.3 更新到 8.0.6,但不能同时更新。

第二个会出现这样的错误:

错误 NU1605 警告错误:检测到软件包降级:Microsoft.Maui.Controls 从 8.0.6 到 8.0.3。直接从项目引用包来选择不同的版本。 MyApp -> Microsoft.Maui.Controls.Compatibility 8.0.6 -> Microsoft.Maui.Controls (>= 8.0.6) MyApp -> Microsoft.Maui.Controls (>= 8.0.3) MyApp

如果我降级那个,我可以安装另一个,但随后我在另一个上收到与上面相同的错误消息,但引用了另一个包。

我的项目文件在将 Microsoft.Maui.Controls 升级到 8.0.6 后有这个:

<ItemGroup>
  <PackageReference Update="Microsoft.Maui.Controls" Version="8.0.6" />
</ItemGroup>

有人知道如何解决这个问题吗?

nuget maui
1个回答
0
投票

与 MS 在这里打开案例:https://developercommunity.visualstudio.com/t/Unable-to-upgrade-nuget-package-Microsof/10575432,如果您遇到此问题,请投票和/或评论以提供其他信息@JpSiller。

© www.soinside.com 2019 - 2024. All rights reserved.