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 <
Answer:
<package>
tag, do not include wincap
or rescap
in IgnorableNameSpaces
.rescap:Capability Name=
will continue to be underlined in the package XML editor, but this does not mean you will have any build warnings or errors.rescap
"must" be included in IgnorableNameSpaces
- this was clearly throwing me off, and may well confuse others, also.Hope this helps someone.
Cheers,
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.