2015-11-29 58 views
1

我想制作屏幕投影应用程序。根据MSDN,我需要Package.appxmanifest中的rescap命名空间。 我写了这个xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities",但名称空间不显示。 我需要更多东西吗?UWP应用程序的受限功能

+0

你说什么“命名空间不显示”是什么意思?如果你想添加屏幕投影功能,你可以在''中添加'''。 –

回答

0

在添加rescap命名空间的Package.appxmanifest中,将'rescap'添加到IgnorableNamespaces属性。

<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"> 

编辑:VS告诉你“能力”不进入“rescap”命名空间,并且不允许你构建应用程序。将名称添加到IgnorableNamespaces中可让您使用“rescap”命名空间,而不会中断应用程序并让您使用受限制的功能。

0

添加“屏幕投射能力”,可以包括以下在“package.manifest”两行:

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

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

此外,你可以找到一个projection sample,它使用ProjectionManager和ApplicationViewSwitcher的API。

对克里斯蒂安:我不认为他的问题与“IgnorableNamespaces”有关,后者更多的是落后能力。

0

开发者帐户无法使用特殊和受限制的功能,因为该公司帐户有需要。