Aug 04 2021 02:33 PM
The <Package> element in PackageLayout.xml is documented to take a ProcessorArchitecture:
https://docs.microsoft.com/en-us/windows/msix/package/packaging-layout
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?
Aug 12 2021 11:27 AM
Aug 17 2021 03:34 PM
@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.