Windows application packaging project for UWP, how to handle Assets?

SmilingMoon 981 Reputation points
2021-10-19T18:30:42.127+00:00

UWP uses lots of files from Assets folder.
When I add the UWP project as main start point to the package project, it doesn't move Assets and local files.

How should I handle this? What is the best practice?

  • Do I have to copy all files with the same folder structure to Package project? Or, is there a way I can configure for VS to handle those (even sync when changed)?
Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 31,766 Reputation points Microsoft Vendor
    2021-10-20T02:44:15.48+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Do I have to copy all files with the same folder structure to Package project? Or, is there a way I can configure for VS to handle those (even sync when changed)?

    It seems that you are trying to package your UWP app using the Windows Application Package Project, right? If it is, then you don't need to move the Assets from the UWP app. Actually, the Windows Application Package Project is just a container and a bridge, it does not affect how the UWP app uses its own resources like the Assets folder, it connects the UWP app and other desktop apps that you package together. The UWP app will still use the resources in its own Assets folder if you want to display images and do other actions. When you need to change resources in the Assets folder, just do it in the UWP app as you did before.

    Update:

    So your issue is about the App Icons and tile images. That's excepted. What you need to do is just generate the logo icons again like what you did in UWP apps. Find the image you used in your UWP app, and generate other icons in the Windows Application Package Project. Then you should be able to see the splash screen and the app icon.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful