本文介绍了.appxmanifest 文件中的 Properties/DisplayName 元素和 VisualElements@DisplayName 属性有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在下面的appxmanifest中,有什么区别

Package/Properties/DisplayName 元素

Package/Applications/Application/VisualElements@DisplayName

<SplashScreen Image=""/></视觉元素></应用程序></应用程序></包>

https://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx

解决方案
Package/Properties/DisplayName

DisplayName 是您在商店中为上传到商店的应用保留的应用名称.

这是开发者门户(= 商店)中的实际保留名称.当您打包应用以上传到商店时,这将在通过 Visual Studio 中的向导时自动设置.

根元素 Visual Elements 是 Windows 应用商店应用在用户的电脑/手机上的可视化方式.

包/应用程序/应用程序/VisualElements

描述 Windows 应用商店应用的视觉方面:其默认磁贴、徽标图像、文本和背景颜色、初始屏幕方向、启动画面和锁定屏幕磁贴外观.

因此,Visual Elements 元素下的 DisplayName 属性是应用程序名称在用户 PC 上的显示方式.这可以与商店中的名称不同(例如本地化).

可以向用户显示的应用的友好名称.这个字符串是可本地化的;详情见备注.有两个明确的保留字不能用作上传到 Windows 应用商店的应用程序的 DisplayName:NoUIEntryPoints"和NoUIEntryPoints-DesignMode".这些标识符保留供开发工具和测试套件使用.

来源:https://msdn.microsoft.com/en-us/library/windows/apps/br211471.aspx

In following appxmanifest, what is the difference between

Package/Properties/DisplayName element

and

Package/Applications/Application/VisualElements@DisplayName

<?

https://msdn.microsoft.com/en-us/library/windows/apps/br211475.aspx

解决方案
Package/Properties/DisplayName

This is the actual reserved name in the developer portal (= store). When you package your app for upload to the store, this will be automatically set when going through the wizard in Visual Studio.

The root element Visual Elements is how the Windows Store app is visualized on the user's pc/phone.

Package/Applications/Application/VisualElements

So the DisplayName property under the Visual Elements element is how the app's name is shown on the user's pc. This can be different from the name in the store (e.g. localized).

Source: https://msdn.microsoft.com/en-us/library/windows/apps/br211471.aspx

这篇关于.appxmanifest 文件中的 Properties/DisplayName 元素和 VisualElements@DisplayName 属性有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 09:22