Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

UWP Automated build fails " mismatch between the processor architecture of the project being built "AMD64" #170

Open
JKennedy24 opened this issue Jul 1, 2019 · 1 comment

Comments

@JKennedy24
Copy link

I am building my application using VSTO online with the latest release and I am getting the following build error:

There was a mismatch between the processor architecture of the project being built "AMD64" and the processor architecture of the reference "C:\agent_work\1\s\MyApp\MyApp\Packages\octane.xam.videoplayer\3.1.0\lib\uap10.0\Octane.Xamarin.Forms.VideoPlayer.UWP.dll", "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. [C:\agent_work\1\s\MyApp\MyApp\MyApp.UWP.DeviceImplementions\MyApp.UWP.DeviceImplementions.csproj]

Any idea what might be causing this?

@JKennedy24
Copy link
Author

JKennedy24 commented Oct 3, 2019

I see you have set up Azure pipelines (which is what I'm also using) and set the build platforms to x86|x64 you will end up with an error.

I think the build architecture of the uwp library needs to be set to ANY CPU

which is this line here: https://github.com/adamfisher/Xamarin.Forms.VideoPlayer/blob/master/src/Octane.Xamarin.Forms.VideoPlayer.UWP/Octane.Xamarin.Forms.VideoPlayer.UWP.csproj#L54

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant