我必须怎么做才能解决“处理器体系结构之间的不匹配"问题.我的项目? [英] What must I do to fix the "mismatch between processor architecture" of my projects?

查看:110
本文介绍了我必须怎么做才能解决“处理器体系结构之间的不匹配"问题.我的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了要提交到Windows应用商店的Winforms .NET Core应用程序.

为了实现这一目标,我能够从答案

当我按照前面提到的答案(该答案的更新"部分)中的特定说明进行操作时,我现在不知道我应该更改什么,或者究竟应该如何更改.

在回答上一个问题之后,以下是我为Winforms应用选择的选项:

...并且对于Windows Packing应用程序:

解决方案

问题是您尚未将解决方案平台特定于X86,请在按F5之前将其编辑为x86.

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:

解决方案

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

这篇关于我必须怎么做才能解决“处理器体系结构之间的不匹配"问题.我的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆