我正在尝试以发布模式构建我的应用程序,但是它不起作用。调试正常。我得到的错误是:
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 SDK
<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选项卡,然后在上下文菜单中选择第二个项目来实现的。
此后,我还必须通过单击带有红线的按钮旁边的按钮来降级项目。