无法编译vdproj与devenv的 - “定位”64“是不符合该项目的目标平台兼容'86'' [英] Unable to compile vdproj with devenv - 'targeting 'x64' is not compatible with the project's target platform 'x86''

查看:1920
本文介绍了无法编译vdproj与devenv的 - “定位”64“是不符合该项目的目标平台兼容'86''的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找的网站在过去的四周时间,发现了很多有关我的问题的信息 - 但没有真正修复它们。

I've been searching around the web for the past hours, finding a lot of information related to my problem - but none actually fixing them.

我的机器是64位安装32位的Visual Studio 10。
解决方案是使用.NET 4中。
解决方案包括64位安装的Crystal Reports。
解决方案还包括log4net的。

My machine is 64 bit with a 32 bit Visual Studio 10 installed. Solution uses .Net 4. Solution includes 64 bits installation of Crystal Reports. Solution also includes log4net.

在VS2010项目的编制是为调试和发布,任何CPU确定。

Compilation of project in VS2010 is OK for both Debug and Release, any cpu.

我加入,我想建立一个Web安装项目。
然而,无论(包括VS UI内使用devenv.exe的命令行)的配置,我得到编译时出现以下错误:

I have added a Web Setup Project that I want to build. However, no matter the configuration I get the following errors when compiling (both within VS UI and command line using devenv.exe):

ERROR: File 'CrystalDecisions.ReportAppServer.Prompting.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.Prompting.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.ObjectFactory.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.ObjectFactory.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.XmlSerialize.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.XmlSerialize.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CommonObjectModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CommonObjectModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CommonControls.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CommonControls.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.ReportDefModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.ReportDefModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'log4net.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'log4net.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.Controllers.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.Controllers.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.DataDefModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.DataDefModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CubeDefModel.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CubeDefModel.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.ClientDoc.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.ClientDoc.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
ERROR: File 'CrystalDecisions.ReportAppServer.CommLayer.dll' targeting 'AMD64' is not compatible with the project's target platform 'x86'
WARNING: File 'CrystalDecisions.ReportAppServer.CommLayer.dll' targeting 'x64' is not compatible with the project's target platform 'x86'

我试图明确设置的项目x86和x64的配置,没有任何改变。

I have tried to explicitly set the configuration for the projects to both x86 and x64, without any change.

有人可以指导我在正确的道路?

Can someone guide me on the right way?

编辑 - 添加截图显示,我不能选择安装项目平台

Edit - added screenshot showing that I am unable to choose platform for the setup project.

推荐答案

您必须标记安装项目为一个64位的安装程序。在属性窗口中安装项目的上投放财产,从86(默认值)到x64改变。另外,还要确保您部署的log4net的和C#项目的目标平台设置为任何CPU的64位版本。并确保你真正的需求的你的应用程序作为64位进程中运行,这是罕见的。

You have to mark the Setup project as a 64-bit installer. Your Setup project's TargetPlatform property in the Properties window, change it from x86 (the default) to x64. Also make sure you deploy the 64-bit version of log4net and that your C# project's Target platform setting is Any CPU. And make sure that you actually need your app to run as a 64-bit process, that's rare.

这篇关于无法编译vdproj与devenv的 - “定位”64“是不符合该项目的目标平台兼容'86''的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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