Windows 10 个 C# UWP 应用 Icon/Name 问题

Windows 10 C# UWP App Icon/Name Issues

Icon for UWP not showing when searching for app in Start Menu

Live Tile showing the wrong name and no icon

Settings from Visual Studio Asset Generation

Picture of the "Short Name" textbox filled in

我在使用 C# UWP Windows 我正在开发的应用程序时遇到问题,图标没有显示在磁贴上,在开始菜单中搜索时也没有显示

<?xml version="1.0" encoding="utf-8"?>
<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" IgnorableNamespaces="uap mp">
  <Identity Name="a4c700f9-b389-48e0-897f-165ed80428aa" Publisher="CN=*PERSONAL NAME REMOVED*" Version="1.0.10.0" />
  <mp:PhoneIdentity PhoneProductId="a4c800f9-b689-48e0-897f-165eb80428aa" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
  <Properties>
    <DisplayName>*NAME REMOVED* Testing Tool</DisplayName>
    <PublisherDisplayName>*PERSONAL NAME REMOVED*</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Dependencies>
    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
  </Dependencies>
  <Resources>
    <Resource Language="x-generate" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="*NAME REMOVED*_Testing_Tool.App">
      <uap:VisualElements DisplayName="*NAME REMOVED* Testing Tool" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="*NAME REMOVED* Testing Tool" BackgroundColor="transparent">
        <uap:LockScreen Notification="badge" BadgeLogo="Assets\BadgeLogo.png" />
        <uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" Square310x310Logo="Assets\LargeTile.png" Square71x71Logo="Assets\SmallTile.png" ShortName="*NAME REMOVED* Testing Tool">
          <uap:ShowNameOnTiles>
            <uap:ShowOn Tile="square150x150Logo" />
            <uap:ShowOn Tile="wide310x150Logo" />
            <uap:ShowOn Tile="square310x310Logo" />
          </uap:ShowNameOnTiles>
        </uap:DefaultTile>
        <uap:SplashScreen Image="Assets\*NAME REMOVED*_white_logo.png" BackgroundColor="#002395" />
        <uap:InitialRotationPreference>
          <uap:Rotation Preference="landscape" />
        </uap:InitialRotationPreference>
      </uap:VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <DeviceCapability Name="serialCommunication">
      <Device Id="any">
        <Function Type="name:serialPort" />
      </Device>
    </DeviceCapability>
  </Capabilities>
</Package>

如果您打开 Package.appxmanifest 并转到视觉资产,您将看到带有复选框的显示名称。勾选资产旁边的相应框 对于图标,您可以检查图标图像大小!

希望这对您有所帮助...

与微软员工在线交谈,这似乎是一个鲜为人知的错误,它只影响某些具有特定 software/hardware 配置的机器。在使用相同设置在其他两个表面上测试我的问题后,问题仍然存在,但是在 HP 笔记本电脑上全新安装 Windows 10 进行测试时,问题已解决。