Windows应用认证工具包挂起

ARH*_*ARH 6 windows-10 windows-10-mobile windows-10-desktop windows-10-universal

我已经开发了Windows 10 App并将其上传到Windows商店.但是,我想申请Windows认证应用套件.测试在这两个阶段中悬而未决;

暂停后Direct3D修剪进行中... UTF-8文件编码正在进行中...

我不在我的应用程序中使用任何这些功能,但我不明白为什么它应该在进程中挂起?

谢谢!

A.J*_*uer 2

我遇到了完全相同的问题:

“Direct3D 暂停后修剪正在进行中...UTF-8 文件编码正在进行中...”

问题是我没有尝试先在本地运行发布版本。它没有运行,因为我使用了如下预处理器指令:

public static LicenseInformation licenseInformation = null;
Run Code Online (Sandbox Code Playgroud)

...

#if DEBUG
        ...
        ...
        licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
        licenseInformation = CurrentApp.LicenseInformation;
#endif
Run Code Online (Sandbox Code Playgroud)

“CurrentApp”确实导致了异常。我现在使用这样的代码:

#if DEBUG
        ...
        ...
        licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
        try
        {
            licenseInformation = CurrentApp.LicenseInformation;
        }
        catch (Exception)
        {
        } 
#endif
Run Code Online (Sandbox Code Playgroud)

当在某处使用许可证信息时,我在使用它之前检查它是否不为空......

我还通过使用“在解决方案上运行代码分析”在我的代码中发现了一些其他问题(警告)。

所以就我而言,这是我的代码有问题。