Hello,
Welcome to Microsoft Q&A!
If your app is a WinUI3 application, it is recommended to use AppInstance.Restart to restart your app programmatically. Like this:
AppRestartFailureReason restartError = Microsoft.Windows.AppLifecycle.AppInstance.Restart("restartArgsInput");
switch (restartError)
{
}
You could get more information here: Restart API
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.