2018-12-25-win10-uwp-release-因为-Entry-Point-Not-Found-无法启动

title author date CreateTime categories
win10 uwp release 因为 Entry Point Not Found 无法启动
lindexi
2018-12-25 09:39:42 +0800
2018-04-06 11:47:31 +0800
Win10 UWP

本文告诉大家如果在使用 release 编译时,无法启动应用,出现 Entry Point Not Found 如何让应用运行。

程序“[30760] xx.exe”已退出,返回值为 -1073741511 (0xc0000139) 'Entry Point Not Found'。
激活 Windows 应用商店应用“43179.1161685EE70AE_ajj8jc175maf4!App”失败,错误为“应用未启动”。

如果在 DEBUG 可以运行,但是在 Release 运行就退出,而且看到输出-1073741511 (0xc0000139) 'Entry Point Not Found' 那么请使用下面的方法

右击项目的属性,在生成页面取消使用.net 本机工具链编译。

如果你的VisualStudio是英文的,那么就右击项目属性,在 Build 页面取消 Complie with .net native tool chain

如果遇到每次都需要重新部署,那么点击 x86 或 x64 的配置管理器,打开部署

UWP app fails to start because of 'Entry Point Not Found' exception · Issue #267 · xamarin/Xamarin.Auth

Deploy UWP on release: error 0xC0000139: Entry Point Not Found - Stack Overflow

但是如果不加上Release的本机工具那么就无法把包上传到商店,所以我还是更新了 VisualStudio 2017 15.6.5 然后重新创建一个空白工程,把图床的所有类放进去,居然重新生成就可以了。

我对比了文件的不同,也没有找到哪个地方会编译不通过。所以建议大家升级 VisualStudio ,如果还是无法使用,就重新创建一个空白项目,如果空白项目可以使用。那么继续把类放进来。

原文地址:https://www.cnblogs.com/lindexi/p/12085954.html