Windows 10 C#UWP应用程序图标/名称问题

时间:2018-04-30 07:12:37

标签: c# windows xaml uwp windows-10-universal

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应用程序的问题,图标没有出现在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>

2 个答案:

答案 0 :(得分:0)

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

enter image description here

希望这会对你有所帮助......

答案 1 :(得分:0)

与在线微软员工聊天,这似乎是一个鲜为人知的错误,它只影响某些具有某些软件/硬件配置的机器。在使用相同设置在另外两个表面上测试我的问题后问题仍然存在,但是在HP笔记本电脑上全新安装Windows 10时,问题已得到解决。