0

我需要设置将出现在 Microsoft Store 中的应用程序的名称。我应该在 package.appxmanifest 中定义哪个元素属性

<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
  <Identity Name="" 
            Version="" 
            Publisher="" />
  <Properties>
    <DisplayName>The Name of the app in the Store</DisplayName>
    <PublisherDisplayName></PublisherDisplayName>
    <Logo></Logo>
  </Properties>
  <Applications>
    <Application Id="" StartPage="">
      <VisualElements DisplayName="The Name of the app in the Store" Description=""
           Logo="" SmallLogo=""  
           ForegroundText="" BackgroundColor="">
         <SplashScreen Image="" />
      </VisualElements>
    </Application>
  </Applications>
</Package>

Properties -> DisplayName element 还是Applications -> Application -> VisualElements -> DisplayName 属性

因为在msdn上 package.appxmanifest 的描述中写了第一个和第二个就像是用户的友好名称。

4

1 回答 1

1

商店中的名称是Properties -> DisplayName, Application -> VisualElements -> DisplayName 实际上是出现在 uwp 应用程序标题栏和开始菜单中的应用程序名称。

将您的项目与开发中心上保留的应用名称相关联会自动为您填写名称。

保留应用名称 https://docs.microsoft.com/en-us/windows/uwp/publish/create-your-app-by-reserving-a-name 将应用与商店关联

右键单击项目 -> 商店 -> 将应用程序与商店关联 -> 选择您已经保留的应用程序名称之一或保留一个新名称。

于 2018-08-26T17:51:15.283 回答