Hi,
So you are trying to convert a desktop app to UWP app, right? From this document, Prepare to package a desktop application, if you have a windows service in your
app, you should use a background task instead of it. So it might be better for you to change it before you put the app into the MSIX tool.
Best regards,
Roy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.