UWP Manifest issue / restricted capability / inputForegroundObservation

后端 未结 2 1609
青春惊慌失措
青春惊慌失措 2021-01-24 05:48

I\'m trying to follow this StackOverflow article, referring to this similar article on StackOverflow, and this from the UWP Windows Dev Center.

In my manifest XML, the <

2条回答
  •  时光说笑
    2021-01-24 06:22

    For Visual Studio 2019. The order is also important. I was putting the rescap:Capability last and kept getting the build error. It works if it's first, before other capabilities

    From https://docs.microsoft.com/en-us/windows/uwp/packaging/app-capability-declarations#restricted-capabilities

    All restricted capability elements must come before any CustomCapability and DeviceCapability elements under the Capabilities node in the package manifest.

提交回复
热议问题