如何编辑Package.appxmanifest [英] How to edit the Package.appxmanifest

查看:212
本文介绍了如何编辑Package.appxmanifest的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试使用输入注入类。

I am trying to use the input injection classes.


使用输入注入需要将以下内容添加到Package.appxmanifest:

Using input injection requires the following be added to the Package.appxmanifest:


  • To  < Package>

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

    • < rescap:Capability Name =" inputInjectionBrokered" />



    我的问题是当我将上面的内容插入  Visual Studio 2017中的Package.appxmanifest我得到"命名空间中的元素包  " http://schemas.microsoft.com/appx/manifest/foundation/windows10"
    不能包含文字

    My problem is that when I insert the above to the Package.appxmanifest in Visual Studio 2017 I get "The element Package in namespace "http://schemas.microsoft.com/appx/manifest/foundation/windows10" cannot contain text


    我用XML(文本)编辑器打开Package.appxmanifest



    当我在Visual Studio外部编辑文件并将其保存为Word .XML时,我得到


    推荐答案

    我现在点击了F7到查看Package.appxmanifest的代码,似乎更好地接受了添加。那么,这是正确的编辑方式吗?

    I have now clicked on F7 to view the code of the Package.appxmanifest and it seems that the additions are better accepted. So, is this the correct way to edit it?

    现在,我得到了


    名称空间'http://schemas.microsoft.com/appx/manifest/foundation/windows10'中的元素'Capabilities'在名称空间中具有无效的子元素'Capability' http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities'。
    预期的可能元素列表:名称空间'http://schemas.microsoft.com/appx/manifest中的'CapabilityChoice' / foundation / windows10'以及命名空间'http://schemas.microsoft.com/appx/manifest/uap/windows10'中的'Capability'以及
    命名空间中的'Capability''http:// schemas .microsoft.com / appx / manifest / foundation / windows10'以及名称空间'http://schemas.microsoft.com/appx/manifest/uap/windows10/4'中的'Capability'以及名称空间中的'Capability' 'http://schemas.microsoft.com/appx/manifest/uap/windows10/6'
    以及命名空间中的'Capability''http://schemas.microsoft.com/appx/manifest/uap/ windows10 / 7'为w在命名空间'http://schemas.microsoft.com/appx/manifest/uap/windows10/3'中的'Capability'以及名称空间'http://schemas.microsoft.com/appx/manifest中的'Capability' / uap / windows10 / 2'
    以及命名空间'http://schemas.microsoft.com/appx/manifest/foundation/windows10'中的'CustomCapabilityChoice'以及命名空间'http:/中的'CustomCapability' /schemas.microsoft.com/appx/manifest/uap/windows10/4'以及'开发......


    这篇关于如何编辑Package.appxmanifest的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆