What must I do to fix the “mismatch between processor architecture” of my projects?

本小妞迷上赌 提交于 2020-12-15 04:56:36

问题


I have built a Winforms .NET Core app that I want to submit to the Windows Store.

In line with that goal, I was able to create an app package from the answer here.

Now I want to get my app onto the App Store. Following the steps here, it tells me that if I "created the package by using Visual Studio" I should, "Set the packaging project as the startup project, and then press F5 to start your app."

So I did that, but got this err msg:

Error MSB3270 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Users\bclay\source\repos\F4F_Core\F4F_Core\bin\Release\netcoreapp3.1\F4F_Core.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. WapProjTemplate1 C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets 2123

As I followed the specific instructions at the previously mentioned answer (the "Update" part of that answer), I don't know now what I should change, or how, exactly, to do so.

Following the answer given to the previous question, here are the options I selected for the Winforms app:

...and for the Windows Packing app:


回答1:


The problem is you have not specificed the solution platforms to X86, please edit it to x86 before press F5.



来源:https://stackoverflow.com/questions/64864614/what-must-i-do-to-fix-the-mismatch-between-processor-architecture-of-my-projec

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!