Microsoft伪造MSB3270:处理器体系结构之间不匹配 [英] Microsoft Fakes MSB3270: There was a mismatch between the processor architecture

查看:180
本文介绍了Microsoft伪造MSB3270:处理器体系结构之间不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在测试项目中使用的是Microsoft假货,它显示了以下令人讨厌的消息:

I´m using Microsoft fakes in my test project and it shows this annoying message:

警告MSB3270:的处理器体系结构之间不匹配
正在构建的项目"MSIL"和参考的处理器架构
" ThirdPartyDll,版本= xxx,文化=中性,processorArchitectu
re = x86","x86".这种不匹配可能会导致运行时失败.请考虑更改
通过Configurati配置项目的目标处理器体系结构
在Manager上,以使您的项目与以下处理器之间的处理器体系结构保持一致
引用,或依赖具有处理器体系结构的引用
at与您的项目的目标处理器体系结构相匹配.

warning MSB3270: There was a mismatch between the processor architecture of
the project being built "MSIL" and the processor architecture of the reference
"ThirdPartyDll, Version=xxx, Culture=neutral, processorArchitectu
re=x86", "x86". This mismatch may cause runtime failures. Please consider chang
ing the targeted processor architecture of your project through the Configurati
on Manager so as to align the processor architectures between your project and
references, or take a dependency on references with a processor architecture th
at matches the targeted processor architecture of your project.

伪造品是从引用了Microsoft.VisualStudio.Coverage.Analysis的Project中创建的,该项目已在x64中进行了编译(我在此程序集方面也遇到了问题,因为我在自定义活动中使用了该程序集进行构建定义,你可以看到 关于该帖子的 http://social.msdn.microsoft.com/Forums/zh-CN/tfsprocess/thread/d4896ad3-aba1-4c36-8570-dcc55c41df95/).

The fake has been created from a Project which references Microsoft.VisualStudio.Coverage.Analysis which has been compiled in x64 (I´ve had problems too with this assembly becuase I´m using it in a custom activity for a build definition, you can see this post regarding that http://social.msdn.microsoft.com/Forums/en-US/tfsprocess/thread/d4896ad3-aba1-4c36-8570-dcc55c41df95/).

我可以使用以下标记在项目编译期间隐藏警告,但不适用于假货:

I can use the following tag to hide the warnings during the project compilation but it doesn´t work for fakes:

< PropertyGroup>
< ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>无</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>

<PropertyGroup>
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>

https ://connect.microsoft.com/VisualStudio/feedback/details/728995/new-vs2010-project-compiler-warning-since-installing-dotnet4-5-vs2011-beta

那么,关于如何解决此问题的任何想法?

So, any ideas about how to solve this?

致谢

推荐答案

Amartinez,您好

Hi Amartinez,

我正在尝试让熟悉此主题的人参与进来这个问题.可能会有一些时间延迟.感谢您的耐心.

最好的问候


这篇关于Microsoft伪造MSB3270:处理器体系结构之间不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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