Windows Application Certificate Suite

I developed a Windows 10 application and uploaded it to the Windows repository. However, I wanted to use the Windows Certification App Kit. Testing freezes during these two steps;

Installing Direct3D after pausing During execution ... UTF-8 file encoding In progress ...

I do not use any of these functions in my application, but I do not understand why it should hang during the process?

Thanks!

+5
source share
2 answers

I ran into the same problem:

"Installing Direct3D after suspension. In progress ... UTF-8 file encoding. In progress ..."

The problem was that I did not try to run the release version locally first . It did not start because I used preprocessor directives:

public static LicenseInformation licenseInformation = null; 

...

 #if DEBUG ... ... licenseInformation = CurrentAppSimulator.LicenseInformation; #else licenseInformation = CurrentApp.LicenseInformation; #endif 

"CurrentApp" really threw an exception .. Now I use this code:

 #if DEBUG ... ... licenseInformation = CurrentAppSimulator.LicenseInformation; #else try { licenseInformation = CurrentApp.LicenseInformation; } catch (Exception) { } #endif 

And when I work with licenseInformation somewhere, I check if it is null before using it ...

I also found some other problems (warnings) in my code using "Analysis of the execution code on the solution".

So, in my case, it was a problem with my code .

+2
source

WACK "Hangs" because it is waiting for the application to launch. The problem arises if you use packages that internally use native code. For example, SQLite (written in C ++).

SQLite for the universal Windows platform requires this Directive to be included in the /Default.rd.xml properties. Otherwise, external code will throw exceptions when your application starts in native mode (build release in Visual Studio).

 <Type Name="System.Collections.ArrayList" Dynamic="Required All" /> 

For more details on this directive and EntityFramework.Sqlite (EF7) see below: https://docs.efproject.net/en/latest/platforms/uwp/getting-started.html

0
source

Source: https://habr.com/ru/post/1238080/


All Articles