加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

msbuild – VS2013 – MSB3270:处理器架构之间不匹配 – Fakes

发布时间:2020-12-16 07:07:37 所属栏目:百科 来源:网络整理
导读:与 this thread一样,我在使用Visual Studio Fakes框架的云项目中构建测试程序集时看到了构建警告. There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference “msshr
与 this thread一样,我在使用Visual Studio Fakes框架的云项目中构建测试程序集时看到了构建警告.

There was a mismatch between the processor architecture of the project being built “MSIL” and the processor architecture of the reference “msshrtmi”,“AMD64”. 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. [D:SSOSharedobjMainServicesShared.TestsFakesmsssf.csproj]

唯一的区别是我在升级到VS 2013之后才开始看到这个问题.根据this connect issue,它应该是固定的.我尝试应用VS 2012解决方法,但这似乎没有任何影响.

有没有其他人在VS 2013中遇到此问题和/或您是如何解决这个问题的?谢谢.

解决方法

尝试在.fakes xml文件中添加以下内容(位于项目树中的Fakes文件夹下)

<Compilation>
    <Property Name="PlatformTarget">x64</Property>
</Compilation>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读