代码之家  ›  专栏  ›  技术社区  ›  Uchiha Itachi

无法识别TargetDeviceFamily

  •  8
  • Uchiha Itachi  · 技术社区  · 7 年前

    我有以下代码在我的 package.appxmanifest TargetDeviceFamily

      <Dependencies>
        <TargetDeviceFamily Name="Windows.Desktop" MinVersion="6.3.0" MaxVersionTested="6.3.0" />
      </Dependencies>
    

    错误:

    enter image description here

    修订:

    Dependancies 目标设备家族 enter image description here

    2 回复  |  直到 7 年前
        1
  •  2
  •   user2250152    7 年前

    你的 package.appxmanifest 包含所需的命名空间 http://schemas.microsoft.com/appx/manifest/foundation/windows10

    <Package 
      xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10">
      ...
      <Dependencies>
        <TargetDeviceFamily Name="Windows.Desktop" MinVersion="6.3.0" MaxVersionTested="6.3.0" />
      </Dependencies>
    </Package>
    
        2
  •  1
  •   BILAL AHMAD    7 年前

    我认为您需要将最小和最大版本更新为

    MinVersion="10.0.x.0" MaxVersionTested="10.0.y.0"