【发布时间】:2020-09-19 20:14:00
【问题描述】:
我正在尝试在发布模式下构建我的应用程序,但它不起作用。调试工作正常。我得到的错误是:
STDERR: ERROR: The asynchronous operation was failed: The package could not be installed because a higher version of this package is already installed (hresult_error:80073D06)[location] = c:\buildagent\work\bfdcd5891b5bc64\resharperautomationtools\native\solution\winrt_launcher\src\utility.hpp(41)[function] = void __cdecl jbrs::wait_for_finished(const struct winrt::com_ptr<struct IAsyncInfo> &)[package name] = Microsoft.NET.Native.Runtime.1.7[uri] = C:\Program Files (x86)\Microsoft SDKs\UWPNuGetPackages\microsoft.net.native.compiler\1.7.6\tools\Runtime\x64\Microsoft.NET.Native.Runtime.1.7.appx
这些是windows sdks
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.18362.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.15063.0</TargetPlatformMinVersion>
这是uwp版本
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
<Version>6.2.10</Version>
</PackageReference>
我无法弄清楚如何修复它,也无法在互联网上找到其他任何东西。如果有人可以提供帮助,将不胜感激。
更新(已修复)
我能够通过将 uwp 降级到 5.2.8 来修复它。 (使用 Rider)我通过转到 NuGet 选项卡然后选择上下文菜单中的第二项来做到这一点。
在那之后,我还必须通过单击带有红线的按钮旁边的按钮来降级项目。
【问题讨论】:
-
如果你解决了你的问题,你应该把它放在下面的你的答案框中;大约一天后,您可以接受自己的答案。这会将您的问题在 UI 中标记为已解决,搜索相同问题的人将看到您的答案。
-
谢谢,添加了我自己的答案,明天将其标记为已回答。