未解决的P / Invoke方法'GetSystemPowerStatus!kernel32.dll'导致商店中的应用程序崩溃 [英] Unresolved P/Invoke method 'GetSystemPowerStatus!kernel32.dll' cause a crash with the app from the store
问题描述
应用程序级别的未处理异常:此方法中未解析的P / Invoke方法'GetSystemPowerStatus!kernel32.dll'。请在构建警告中查找此方法以获取更多详细信息。
但是,没有关于该方法的警告 GetSystemPowerStatus
此问题仅在我将应用程序发布到Windows应用商店(并通过Windows应用商店下载)后发生。执行本地DEBUG和RELEASE构建按预期工作。边加载
应用程序也可用作预期。
< blockquote>
非常喜欢
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/15f89674-8c49-43d5-920b-d0997bb607f5 / rs31709systemnethttphttpclient-possible-caused-quotunresolved-pinvokequot-crash?forum = wpdevelop
我无法弄清楚出了什么问题。
Unhandled exception at app level: Unresolved P/Invoke method 'GetSystemPowerStatus!kernel32.dll' from this method. Please look for this method in build warnings for more details.
However, there is no warning about the method GetSystemPowerStatus
This issue only happens after I publish my app to the Windows Store (and download it through the Windows Store). Performing local DEBUG and RELEASE builds work as expected. Side-loading the app also works as expected.
It is quite like
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/15f89674-8c49-43d5-920b-d0997bb607f5/rs31709systemnethttphttpclient-possibly-causing-quotunresolved-pinvokequot-crash?forum=wpdevelop
I cannot figure out what is wrong.
这篇关于未解决的P / Invoke方法'GetSystemPowerStatus!kernel32.dll'导致商店中的应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!