我已经开发了 windows 10 应用程序并将其上传到 windows 商店。但是,我想申请 Windows Certification App Kit。测试在这两个阶段挂起;
暂停后的 Direct3D 修剪 进行中... UTF-8 文件编码 进行中...
我没有在我的应用程序中使用任何这些功能,但我不明白为什么它应该在处理过程中挂起?
谢谢!
我已经开发了 windows 10 应用程序并将其上传到 windows 商店。但是,我想申请 Windows Certification App Kit。测试在这两个阶段挂起;
暂停后的 Direct3D 修剪 进行中... UTF-8 文件编码 进行中...
我没有在我的应用程序中使用任何这些功能,但我不明白为什么它应该在处理过程中挂起?
谢谢!
我遇到了同样的问题:
“暂停后的 Direct3D 修剪正在进行中...... UTF-8 文件编码正在进行中......”
问题是我没有尝试先在本地运行发布版本。它没有运行,因为我使用了这样的预处理器指令:
public static LicenseInformation licenseInformation = null;
...
#if DEBUG
...
...
licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
licenseInformation = CurrentApp.LicenseInformation;
#endif
“CurrentApp”确实导致了异常。我现在使用这样的代码:
#if DEBUG
...
...
licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
try
{
licenseInformation = CurrentApp.LicenseInformation;
}
catch (Exception)
{
}
#endif
当在某处使用 licenseInformation 时,我在使用它之前检查它是否不为空......
我还通过使用“在解决方案上运行代码分析”在我的代码中发现了一些其他问题(警告)。
所以就我而言,这是我的代码有问题。
WACK“挂起”,因为它正在等待应用程序启动。如果您使用内部使用本机代码的包,则会出现问题。一个例子是 SQLite(用 C++ 编写)。
通用 Windows 平台的 SQLite 要求将此指令包含在 Properties/Default.rd.xml 中。否则,当您的应用在本机模式下运行时,外部代码将引发异常(在 Visual Studio 中发布构建)。
<Type Name="System.Collections.ArrayList" Dynamic="Required All" />
有关此指令和 EntityFramework.Sqlite (EF7) 的详细信息,请参阅:https ://docs.efproject.net/en/latest/platforms/uwp/getting-started.html