I want to do indefinitely Run in the background.
https://docs.microsoft.com/ja-jp/windows/uwp/launch-resume/run-in-the-background-indefinetly
I added the following to Package.appxmanifest.
I erased "<" and ">" because code disappear.
Package
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="rescap"
Capabilities
rescap:Capability Name="extendedExecutionUnconstrained"/
rescap:Capability Name="extendedBackgroundTaskT_ime"/
/Capabilities
I added "rescap" to IgnorableNamespaces.
I added "extendedExecutionUnconstrained".
I added "extendedBackgroundTaskTime".
The following error is displayed.
Validation error. error C00CE018: App manifest validation error: The app manifest must be valid as per schema: Line 52, Column 4, Reason: According to the DTD or schema, the element '{http://schemas.microsoft.com/appx/manifest/foundation / windows10} Text can not be used in the context of 'Capabilities'. {http://schemas.microsoft.com/appx/manifest/foundation/windows10}CapabilityChoice, {http://schemas.microsoft.com/appx/manifest/foundation/windows10}CustomCapabilityChoice, {http://schemas.microsoft .com / appx / manifest / foundation / windows10} DeviceCapability is required.
How do I add "extendedExecutionUnconstrained" and "extendedBackgroundTaskTime"?
How do I do indefinitely Run in the background?