Properties/DisplayName 元素和 .appxmanifest 文件中的 VisualElements@DisplayName 属性有什么区别

What's the difference between Properties/DisplayName element and VisualElements@DisplayName attribute in .appxmanifest file

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

Package/Properties/DisplayName 元素

Package/Applications/Application/VisualElements@DisplayName

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
  <Identity Name="" 
            Version="" 
            Publisher="" />
  <Properties>
    <DisplayName></DisplayName> <!-- this -->
    <PublisherDisplayName></PublisherDisplayName>
    <Logo></Logo>
  </Properties>
  <Prerequisites>
    <OSMinVersion></OSMinVersion>
    <OSMaxVersionTested></OSMaxVersionTested>
  </Prerequisites>
  <Resources>
    <Resource Language="" />
  </Resources>
  <Applications>
    <Application Id="" StartPage="">
      <!-- and this -->
      <VisualElements DisplayName="" 
           Description=""
           Logo="" SmallLogo=""  
           ForegroundText="" BackgroundColor="">
         <SplashScreen Image="" />
      </VisualElements>
    </Application>
  </Applications>
</Package>

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

Package/Properties/DisplayName

The DisplayName is the name of your app that you reserve in the store, for apps which are uploaded to the store.

这是开发者门户(=商店)中的实际保留名称。当您打包您的应用程序以上传到商店时,这将在 Visual Studio.

中通过向导自动设置

根元素 Visual Elements 是 Windows Store 应用在用户 pc/phone 上的可视化方式。

Package/Applications/Application/VisualElements

Describes the visual aspects of the Windows Store app: its default tile, logo images, text and background colors, initial screen orientation, splash screen, and lock screen tile appearance.

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

A friendly name for the app that can be displayed to users. This string is localizable; see Remarks for details. There are two explicitly reserved words that may not be used as the DisplayName for apps uploaded to the Windows Store: "NoUIEntryPoints" and "NoUIEntryPoints-DesignMode". These identifiers are reserved for use by development tools and test suites.

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

我的商店中有一个应用可以解释这个问题。

Package/Properties/Display Name 元素是指商店中的应用程序名称,与仪表板中的名称相同。如果您更改 Visual Elements 中的 Display Name 分发,您的应用程序将在用户从应用商店安装后与应用商店中的自身不同。