adamfisher/Xamarin.Forms.VideoPlayer

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

Opened this issue · 1 comments

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?

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