Image Reference Missing from Package

JS 106 Reputation points

I am using VS 2019 to develop UWP, C#, XAML game. I am getting many errors like the lines like below while uploading the package in the store.

Image reference "Assets\StoreLogo.png": The image "Assets\StoreLogo.scale-200.png" is missing from the package.

I created those images using Package.AppManifest - > Visual Assets Asset Generator - > Generate to generate. All those images are in the folder pointed in the image error. All those images are set to copy on build. Tried setting different folders (while generating). Tried clearning and rebuilding packages multiple times. The publish process does not show any errors (WACK). I can see images inside the msixupload packages. Any help will be appreciated.

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. JS 106 Reputation points

    Finally found a solution:

    Basically, when VS 2019 builds a package, it fails to include some visual assets if the solution is in OneDrive synced folder. I copied the solution folder to desktop (folder not included in OneDrive) and rebuild the solution and it worked.

    A couple notes so that if anyone else has the same issue, they will find this thread when searching.

    I got warnings like the ones in the post linked post:

    GENERATEPROJECTPRIFILE : warning PRI298: 0xdef00535 - File or folder ignored due to file attributes (hidden, system, link): ARM64\Release\PackageUploadLayout\Assets\Square44x44Logo.scale-400.png.

    I checked to see if any file or folder had hidden or system attribute, but that was not the case. Plus, there were plenty of images inside the overall package that I did not think these warnings meant anything (had warnings for images that were included in the package).

    Hope this helps others as well. One of the posts states this issue started with Visual Studio 2019 and was fine in Visual Studio 2017.

    Thanks FayWang to trying to help!

    2 people found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful