由于处理器架构的不匹配而无法构建

由于处理器架构的不匹配而无法构建

问题描述:

我有2个Xamarin表单应用程序,它们都在构建和运行良好。我没有更改它们,但是在一夜之间安装了Windows 10更新,现在两个应用程序的PCL项目的构建都失败并出现错误

I have 2 Xamarin forms applications which were both building and running fine. I have not changed them but a Windows 10 update was installed overnight and now the build of the PCL project for both applications are failing with the error

正在构建的项目的处理器架构与"MSIL"之间存在不匹配。以及参考文献"C:\ Windows \ Macrooft.NET\Framework\v4.0.30319\\mscorlib.dll","x86"的处理器体系结构。这种不匹配可能是
导致运行时故障。请考虑通过Configuration Manager更改项目的目标处理器体系结构,以便在项目和引用之间调整处理器体系结构,或者使用与项目的目标处理器体系结构相匹配的
处理器体系结构依赖于引用。   

There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\mscorlib.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.   

我对他参与V4.0.30319感到有点困惑,因为这两个项目都针对.Net 4.5框架。

I am a bit confused about he referebce to V4.0.30319 as both projects are targetted on .Net 4.5 framework.

如何解决此问题。

      

      

Pat Moran

Pat Moran

Hi Pat Moran,

欢迎来到MSDN论坛。

Welcome to the MSDN forum.

请参阅您的描述,您的问题是关于Xamarin.Forms应用程序开发。由于我们的论坛是讨论VS IDE,请重定向到这个适当的论坛:
https://forums.xamarin .com / categories / visual-studio 并开始寻找更专业的支持。

Refer to your description, your issue is about the Xamarin.Forms application development. Since our forum is to discuss the VS IDE, please redirect to this appropriate forum: https://forums.xamarin.com/categories/visual-studio and start a new thread to seek for a more professional support.

对此造成的不便表示歉心,感谢您的理解。

Sorry for this inconvenience and thank you for your understanding.

祝你好运,

Sara