Reputation: 586
I'm trying to create the store packages for a windows store app that includes a Windows Run Time component for running a background process that updates the Lock Screen. The app runs fine, but when I try to create the store packages I get this error:
There was a mismatch between the processor architecture of the project being built "AMD64" and the processor architecture of the reference "WindowsRuntimeComponent1, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
There seems like there's a dozen of different combinations I can tweak in the configuration manager, and there's very little help online regarding this problem. This is very frustrating - the app runs fine on my own machine, and now when I'm ready to finalize and upload the app I hit this brick wall.
Upvotes: 1
Views: 799
Reputation: 981
Go to the project properties in visual studio. Under Compile, change Target CPU to x86
You get to the project properties by:
go the solution explorer
right click the phone app project
click properties in the context menu
On the left hand side, there should be a vertical nav menu, click Compile
Change the Target CPU to x86 and save
Upvotes: 1