随笔 - 833  文章 - 1  评论 - 106  阅读 - 200万

File targeting 'AMD64' is not compatible with the project's target platform 'x86' 解决方法

 我在使用vs2010制作64位安装包时出现了以下问题:

File targeting 'AMD64' is not compatible with the project's target platform 'x86'

Error  File 'NGlbComm.DLL' targeting 'AMD64' is not compatible with the project's target platform 'x86'  
.........................................
我的安装包里包含 C++的x64位dll和C#的x64位dll,目的是生成一个64位的安装包,结果编译出错了,baidu了一下错误,找到的回答更让我摸不到头脑,完全没用,白耗费我半天时间(在此再次一下baidu),后来FQ使用google,很快找到答案,解决之,真心很简单,就是一个按键F4,在弹出的工程属性栏中将TargetPlatform选项由x86改为x64即可。
 

再次编译,通过!

把国外找到的解决方案网址写出来 http://www.fewlines4biju.com/2011/09/file-targeting-amd64-is-not-compatible.html


 


 

 

posted on   3D入魔  阅读(957)  评论(0编辑  收藏  举报
编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· DeepSeek 开源周回顾「GitHub 热点速览」
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2010-05-31 地形LOD动态加载分页调度实现思路
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示