Hi @youki ,
Welcome to Microsoft Q&A!
I create a WinUI3 project and refer to "Option 2: copy the files with a PowerShell script" ,it can work.
You need to use PSF library, you can refer to the documentation Run scripts with the Package Support Framework.
During the test, I found that in the WinUI3 project, PSF cannot be added in Visual Studio 2022. I need to download the PSF from the project folder using the command line.
If you face difficulties during testing, please feel free to comment below.
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.