简体   繁体   English

使用 .net 本机工具链编译后 Uwp 应用程序立即崩溃

[英]Uwp app crash immediately after compiled with .net native toolchain

I'm creating an uwp app.我正在创建一个 uwp 应用程序。 My app works well in debug mode.我的应用程序在调试模式下运行良好。 But when compiled with .net native toolchain, which is essential to publish app to the Store, it crash immediately.但是,当使用 .net 本机工具链(这是将应用程序发布到商店所必需的)进行编译时,它会立即崩溃。 I was trying to enable all the exception settings but it didn't hit any breakpoints.我试图启用所有异常设置,但它没有遇到任何断点。 All the information I can get from the output is:我可以从输出中获得的所有信息是:

The program '[9548] DemoBuildError.exe' has exited with code -1073741511 (0xc0000139) 'Entry Point Not Found'.程序“[9548] DemoBuildError.exe”已退出,代码为 -1073741511 (0xc0000139)“未找到入口点”。 Activation of the Windows Store app '9e380736-23cf-476f-b625-be7baa70ad56_jatac5brr3jea.App' failed with error 'The app didn't start'. Windows 应用商店应用“9e380736-23cf-476f-b625-be7baa70ad56_jatac5brr3jea.App”的激活失败,出现错误“应用未启动”。

I also try to create new project and copy, paste carefully as mentioned in some previous threads but no luck.我也尝试创建新项目并像之前的一些线程中提到的那样仔细复制、粘贴,但没有成功。 Here is my demo project to reproduce the error: https://bitbucket.org/wpdev01/demobuilderror这是我重现错误的演示项目: https ://bitbucket.org/wpdev01/demobuilderror

Any ideas?有任何想法吗?

Since your repo is private, I'm also facing the same problem, I guess it's due to some third party controls your refered.由于您的回购是私人的,我也面临同样的问题,我想这是由于您提到的某些第三方控制所致。

In my project, I unloaded all third party controls, it works fine again.在我的项目中,我卸载了所有第三方控件,它又可以正常工作了。

in your case its quite a problem.在您的情况下,这是一个很大的问题。

  1. try to add "unhandledexception": https://learn.microsoft.com/en-us/dotnet/api/system.appdomain.unhandledexception?view=netframework-4.8尝试添加“unhandledexception”: https ://learn.microsoft.com/en-us/dotnet/api/system.appdomain.unhandledexception?view=netframework-4.8
  2. debug and see what's next.调试并查看下一步。

    in debug mode compiler optimizations are turned off but the app is should work the same.在调试模式下,编译器优化已关闭,但应用程序应该可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 由于自定义样式,使用 .NET 本机工具链编译的 UWP App 在启动时崩溃 - UWP App compiled with .NET native tool chain crashes on startup due to custom style 部署后的UWP应用崩溃问题 - UWP App Crash Issue After Deploy Xamarin UWP调试版本有效,但不能发布(“未找到嵌入式资源”和.NET本机工具链) - Xamarin UWP Debug Build works, but not Release (“No embeddedresource found” and .NET Native Toolchain) Windows 10 UWP 应用程序在启动画面后立即关闭/崩溃 - Windows 10 UWP app closes/crashes immediately after splash screen uwp app(.net native)和未处理的异常 - uwp app (.net native) and unhandled exception 使用 .NET Native 构建的 UWP 应用程序的符号异常 - Symbolicate exception of UWP app built with .NET Native 应用程序启动后UWP崩溃:“内部MapControl框架初始化失败” - UWP crash after app start: “The internal MapControl framework failed to initialize” 从程序包部署后运行UWP应用-崩溃 - UWP app run after deploy from package - crash Xamarin.Forms UWP项目使用.Net Native编译时会引发异常 - Xamarin.Forms UWP project throws exception when compiled with .Net Native UWP .NET本机问题 - UWP .NET Native Issue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM