次の方法で共有


Windows 8.1 WACK Failure: The contrast ratio of the background color and foreground text color is 1. This ratio should be greater than or equal to 1.5

I was trying to submit a new application of mine to the Windows 8 Store and I failed a package compliance test which stated:

Package compliance test

FAILED

App manifest

  • Error Found: The app manifest test detected the following errors:
    • The contrast ratio of the background color and foreground text color is 1. This ratio should be greater than or equal to 1.5.
  • Impact if not fixed: Apps that violate the Windows Store certification requirements can’t be submitted to the Windows Store.
  • How to fix: App manifest must include valid entries for all required fields, please modify the manifest entries listed above.

 

What created this issue or failure is that I wanted the application's background to be pure white including the splash screen and tile background colors. But what I forgot to do is flip the Foreground text property within the Package.appxmanifest to Dark (default is Light).  As a result, when the WACK test was run, it's static analysis kicked in thinking I was trying to submit a white on white application and complained about contrast within the app. If you come across this error, just make sure you go into the manifest and double check the following property: