Using ProcessorArchitecture from PackageLayout instead of AppxManifest

Frequent Visitor

The <Package> element in PackageLayout.xml is documented to take a ProcessorArchitecture:


However, no matter what I try for ProcessorArchitecture, MakeAppx will always generate the package as Neutral. And if I have two <Package> elements in the <PackageFamily> with a different ProcessorArchitecture, it will complain that I have two Neutral packages in the PackageFamily.


If on the other I specify the ProcessorArchitecture inside the AppxManifest under <Identity> it works fine, but then I need to jump through various hoops to build things.


How does one get the ProcessorArchitecture to work as documented inside PackageLayout.xml?

2 Replies
@deonb1 thank you for your question. I am looking into this. Could you please share the exact error message? Also what version of windows SDK do you have?

@deonb1  Does the source manifest (the file specified in the ManifestPath attribute) contain a ProcessorArchitecture attribute under the <Identity> element? If not, try adding one there. The value doesn't matter since it'll be replaced when building the packaging layout.


What might be happening is, the ProcessorArchitecture specified in PackagingLayout only replaces an existing value in the source manifest, but it does not add one if it's not specified.