xamarin - Cannot run Xamarin UWP App in Release mode
问题描述
I am currently working on a multi-platform Xamarin app, targeting iOS and UWP. Everything is fine on iOS, but I have trouble deploying on Windows in Release mode.
In Debug mode, there is no problem. My app can be compiled, deployed and packaged. In Release, I can compile my project, but it crashes at start, with this output:
The program '[1820] MyProject.exe' has exited with code -1073741189 (0xc000027b).
Activation of the Windows Store app 'MyProjectFullNamePackage!App' failed with error 'Operation not supported. Unknown error: 0x80040905'.
I spent days looking for a solution on internet, and I tried to :
- Create a package in Release mode and install it on another PC
- Compile with Native debugger to get more log
- Change my SDK version
- Clean, delete bin/obj, delete .vs, restart VS, rebuilding etc
- Restore Nuget packages
- Increase the app version
And almost everything I found on forums...
UWP Target version: 1903 (Build 18362) UWP Min version: 1803 (Build 17134) My OS SDK version: 17134
Xamarin: up to date.
:(
解决方案
推荐阅读
- architecture - 微服务架构——数据初始化
- spring-boot-admin - 使用spring boot admin时如何获取instanceID?
- postgresql - 关联这些数据库表的更好方法是什么?
- javascript - 在 REACT 的段落中显示 Json 对象
- javascript - 在 D3JS 中将数据绑定到 DOM
- c++ - 如何实现一个唯一ID队列,其中元素可以在C++中“碰撞”到顶部?
- reactjs - 对大范围值反应 rc-slider 灵敏度
- javascript - Javascript 不在正确的 Div 中输出
- javascript - 如何防止将相同元素从一个数组两次添加到另一个数组?
- constraints - 用约束解决变分问题