Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TargetDeviceFamily not recognized

I have the following code in my package.appxmanifest, and I'm getting an error that the TargetDeviceFamily is an "unrecognized XML element"... I don't know what the hell is going on, but it's this document is the last thing from me publishing my app, and I'm losing my mind. Can't find anything on MSDN and their support wasn't that supportive.

Code:

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

Error:

enter image description here

Amendment:

When I remove the Dependancies and TargetDeviceFamily, I get this error: enter image description here

like image 296
Uchiha Itachi Avatar asked Sep 01 '17 23:09

Uchiha Itachi


2 Answers

Does your package.appxmanifest contain the required namespace 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>
like image 173
user2250152 Avatar answered Oct 21 '22 10:10

user2250152


I think you need to update the min and max versions to

MinVersion="10.0.x.0" MaxVersionTested="10.0.y.0"
like image 33
BILAL AHMAD Avatar answered Oct 21 '22 08:10

BILAL AHMAD