microsoft / DesktopBridgeToUWP-Samples

This repo contains the samples that demonstrate the usage patterns for the Desktop Conversion extensions.
MIT License
491 stars 271 forks source link

when run SystrayComponent.exe , click " open uwp" then an exception #76

Open xiaoao opened 5 years ago

xiaoao commented 5 years ago

有关调用实时(JIT)调试而不是此对话框的详细信息, 请参见此消息的结尾。

** 异常文本 ** System.InvalidOperationException: 该进程没有程序包标识符。 (异常来自 HRESULT:0x80073D54) 在 Windows.ApplicationModel.Package.get_Current() 在 SystrayComponent.SystrayApplicationContext.d5.MoveNext() 位置 D:\codes\cs\DesktopBridgeToUWP-Samples\Samples\UWP Systray\SystrayComponent\SystrayApplicationContext.cs:行号 53 --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state)