Template for an Empty UWP project.

Allanjb 246 Reputation points
2021-07-25T00:50:38.607+00:00

I am working with the Microsoft Windows Packaging Samples - BGTask: The WPF with Background Tasks example.
Step 3 requires that you add a UWP application that references the runtime component: HttpPing.
The UWP application, (UWPHead.csproj) is a minimal UWP app that only contains App.xaml and App.xaml.cs. It also has a manifest.
There is no exe only object code.
How do I build such a minimal app, is there a template for this?
Link to GitHub for the example: BGTask

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,866 Reputation points
    2021-07-26T07:30:55.753+00:00

    Hello, Welcome to Micorosoft Q&A,

    How do I build such a minimal app, is there a template for this?

    Please check above case link, in the github readme page has explain document, Extend your desktop application with Windows 10 features using the new Visual Studio Application Packaging Project, it contains detail about the app's architecture,

    And the UWP document part is just a bridge to connect the backgroudtask with wpf project, so it does not contain ui. and the main manifest file in the WPFUIWithBackgroundTask.Package, but not UWPHead.

    if you want to build it, please right click WPFUIWithBackgroundTask.Package project and set it as start project then run the solution.

    117779-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.