OOP Background task not firing in MAUI app for Windows on .NET 8 and .NET 9 #27919
Labels
area-publishing
Issues with the app packaging/publishing process (ipk/apk/msix/trimming)
platform/windows 🪟
s/needs-attention
Issue has more information and needs another look
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Description
The sample provided here by Microsoft is for WPF on .NET 6, and the background task works as expected. However, following the instructions in the README.md file for a MAUI app for Windows on .NET 8 and .NET 9 doesn't function. The task registration is recognized by Visual Studio in the lifecyle events menu, but it doesn't fire when selected, nor on the device TimeZoneChange trigger as expected. The README.md file does say "The packaging app is required for hosting out-of-process WinRT components." However, the "Create a Windows MSIX package." option is selected in this .NET 8 project, and was also selected in the .NET 9 project, though each project handles that setting a bit differently.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Mvk3aJKQh/BackgroundTaskNET8
Version with bug
9.0.14 SR1.4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
Windows
Affected platform versions
Windows 10 build 19045.5487
Did you find any workaround?
No, currently not functional.
Relevant log output
The text was updated successfully, but these errors were encountered: