首页 > 解决方案 > Windows 10 C# UWP 应用程序图标/名称问题

问题描述

在开始菜单中搜索应用程序时未显示 UWP 图标

显示错误名称且没有图标的动态磁贴

Visual Studio 资产生成中的设置

填写的“短名称”文本框的图片

我正在开发的 C# UWP Windows 应用程序出现问题,图标未显示在 Tile 上以及在开始菜单中搜索时

<?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>

标签: c#windowsxamluwpwindows-10-universal

解决方案


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

在此处输入图像描述

希望对你有帮助 ...


推荐阅读