1

I want to make screen projection application. And according to MSDN I need a rescap namespace in Package.appxmanifest. I Wrote thisxmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities", but namespace does not appears. Do I need something more?

Clocker
  • 21
  • 2
  • 7
  • What do you mean by saying "namespace does not appears"? If you want to add Screen Projection Capability, you can add `` in ``. – Jay Zuo Nov 30 '15 at 05:15

3 Answers3

1

In the Package.appxmanifest when you add the rescap namespace, add 'rescap' to the IgnorableNamespaces property.

<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" 
     xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" 
     xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" 
     xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
     IgnorableNamespaces="uap mp rescap">

Edited: VS tells you "Capability" aren't into "rescap" namespace and doesn't let you build the application. Adding the name to the IgnorableNamespaces let you use the "rescap" namespace without breaking the application and letting you use the restricted capability.

0

To Add "Screen Projection Capability", you can include following two lines in "package.manifest":

xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

<Capabilities>
<rescap:Capability Name="screenDuplication "/>
</Capabilities>

Besides, you can find a projection sample, which use ProjectionManager and ApplicationViewSwitcher APIs.

To Cristian: I don't think his problem is related with "IgnorableNamespaces", which is more about backward capability.

Fangfang Wu - MSFT
  • 1,062
  • 6
  • 7
0

Developer account can't use the Special and restricted capabilities,for that company account has need.

Vinoth Rajendran
  • 1,141
  • 1
  • 9
  • 13