Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows phone UWP应用程序上的受限功能_Windows Phone_Uwp_Appx_Appxmanifest - Fatal编程技术网

Windows phone UWP应用程序上的受限功能

Windows phone UWP应用程序上的受限功能,windows-phone,uwp,appx,appxmanifest,Windows Phone,Uwp,Appx,Appxmanifest,我想做屏幕投影应用程序。根据MSDN,我需要Package.appxmanifest中的重新映射命名空间。 我写了这个xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities“,但未显示命名空间。 是否还需要其他内容?在Package.appxmanifest中添加重新映射命名空间时,请将“重新映射”添加到IgnorableNamespaces属性 &l

我想做屏幕投影应用程序。根据MSDN,我需要Package.appxmanifest中的重新映射命名空间。 我写了这个
xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities“
,但未显示命名空间。
是否还需要其他内容?

在Package.appxmanifest中添加重新映射命名空间时,请将“重新映射”添加到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告诉您“功能”不在“重新映射”命名空间中,并且不允许您构建应用程序。将名称添加到IgnoralEnableNameSpaces可以让您使用“重新映射”命名空间,而不会中断应用程序并允许您使用受限功能。

要添加“屏幕投影功能”,可以在“package.manifest”中包括以下两行:

xmlns:rescap=”http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
此外,您还可以找到使用ProjectionManager和ApplicationViewSwitcher API的


克里斯蒂安:我不认为他的问题与“Ignorablenamespace”有关,后者更多的是关于向后的功能。

开发人员帐户不能使用特殊和受限的功能,因为该公司帐户有需要。

你说“命名空间不出现”是什么意思?如果要添加屏幕投影功能,可以在
中添加
。如何获取公司帐户?一旦我有一个,我的应用程序怎么知道我有一个?
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"

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