Windows service in windows phone

basith p 1 Reputation point
2022-07-07T11:42:25.903+00:00

Hi,

I have a project for windows desktop with two processes. One is windows service running in background and a UI application that connects with windows service through IPC. Both are running .Net core 6 (WinUI3 and worker service). I want to use same project in windows phone. Can I use the same source code for that? Mainly I have two requirements

  • Can I run windows service (in .Net 6) in windows phone, if not what is alternative for windows service in windows phone
  • Can I run WinUI3 in windows phone. if not I can use uwp for UI app.
Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
752 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
    2022-07-08T02:20:59.637+00:00

    Hello,

    Welcome to Microsoft Q&A!

    I'm not familiar with windows service, so I could just talk from the UWP side and answer the seconde question.

    Can I run WinUI3 in windows phone. if not I can use uwp for UI app.

    No, you can't run WinUI3 in windows phone. Based on the document: WinUI3 library requires windows 10, 1809 or higher. Windows phone support is ended now and its OS version stops at windows 10, 1709. So you can't run WinUI3 applilcation on windows phone.

    You have to create a UWP with target windows 10, 1709 so that the app could run on windows phone.

    For your first question, you might need to go to other forums and ask windows service engineers.

    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 comments No comments