[英]C# uwp application not building in release mode
我正在尝试以发布模式构建我的应用程序,但它不起作用。 调试工作正常。 我得到的错误是:
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 选项卡,然后在上下文菜单中选择第二项来完成此操作。
之后,我还必须通过单击带有红线的按钮旁边的按钮来降级项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.