Windows Application Packaging Project Never Stops

Kurt 1 Reputation point
2020-07-21T17:22:38.083+00:00

I am currently developing an application that requires using the windows application packaging project to allow a UWP app (.NET Core) to launch another application (.NET Framework). This works. However, I have noticed that if the user closes the initial window that appears when the windows application packaging project is run very soon after the window appears (probably 2 seconds at most), the project will never close and will remain running in the background. I was able to reproduce this issue by making a new windows application packaging project, making a new blank universal windows app, setting the black universal windows app as the entry point of the windows application packaging project and running the windows application packaging project. (You don't need 2 apps like in the application I am currently developing to reproduce. You just need a windows application packaging project and a blank universal windows app).
How can I ensure that the application will terminate? (Keep it from running until forced to close via debug stop or task manager)

Universal Windows Platform (UWP)
{count} votes