Unable to compile vdproj with devenv - 'targeting 'x64' is not compatible with the project's target platform 'x86''

(active)' targeting 'amd64' is not compatible with the project's target platform 'x86'
file 'log4net.dll' targeting 'x64' is not compatible with the project's target platform 'x86'
c# targeting 'amd64' is not compatible with the project's target platform 'x86
devenv vdproj

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.

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.

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

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'

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.

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 TargetPlatform setting is Any CPU. And make sure that you actually need your app to run as a 64-bit process, that's rare.

it3xl/MSBuild-DevEnv-Build-Server-Workarounds, Building VDPROJ (with workaround) doesn't seem to work with VS 2017 Failed to disable out of process build for Visual Studio instance with  I created a setup project and tried to compile it as below using devenv. projects\src\Setup.vdproj " There was a bug in devenv.exe in Beta 2 that prevented

  1. Open Deployment.vdproj, in Notepad.
  2. Find string "TargetPlatform" = "3:0"
  3. Change to "TargetPlatform" = "3:1" for AMD64, or "TargetPlatform" = "3:2" for Itanium.
  4. Save Deployment.vdproj. In Visual Studio you don't see any changes, but your Project now AMD64.

Unable to compile vdproj with devenv - 'targeting 'x64' is not , Unable to compile vdproj with devenv - 'targeting 'x64' is not compatible with the project's target platform 'x86''. Question. I've been searching around the web for  It seems they won't continue to support .vdproj files in upcomming versions of visual studio (2010 will be the last supporting them). So you may run into problems in the future even if you're using devenv instead of msbuild. but this article could be some kind of whispering, too.

  1. Open a deployment project.
  2. In the Solution Explorer, select the deployment project.
  3. In the Properties window, select the TargetPlatform property.
  4. Choose either Itanium for an Intel Itanium 64-bit platform, or x64 for any other 64-bit platform (such as AMD64 and EM64T instruction sets).
  5. At installation time, an error will be raised and installation will be halted if the target computer is not compatible with the specified platform.

Msbuild for vdproj - MSDN, I have tried a build MSBuild task with then projectfile mySetup.vdproj I created a setup project and tried to compile it as below using devenv for a setup project. I can not use TFS to automate this build without jumping through hoops. Unable to compile vdproj with devenv - 'targeting 'x64' is not compatible with the project's target platform 'x86'' 129 Create MSI or setup project with Visual Studio 2012

  1. Go to Visual Studio "View" menu and click Properties Windows:

  1. Select Target Framework x64 bit:

VS2019 building vdproj fails prebuild validation with 0x8000000A , vdproj files, the only way to build them is calling devenv directly. With earlier versions of VS, we had to set a registry entry EnableOutOfProcBuild=  MSBuild cannot build .vdproj projects. You should use Visual Studio (devenv.com) for this. – Kiquenet Feb 28 '17 at 12:44

  1. Open a deployment project.
  2. In the Solution Explorer, select the deployment project.
  3. In the Properties window, select the TargetPlatform property.
  4. Choose either Itanium for an Intel Itanium 64-bit platform, or x64 for any other 64-bit platform (such as AMD64 and EM64T instruction sets).

At installation time, an error will be raised and installation will be halted if the target computer is not compatible with the specified platform.

Package Load failure running devenv on TFS (I am using devenv to , Package Load failure running devenv on TFS (I am using devenv to build a .​vdproj file). Team Foundation Server - Build Automation. Windows Tech ‹ Visual  With this extension the old project (2010, 2015) is capable to work in (2017, 2019). VDPROJ are not deprecated, simply they are improved with a new extension, for more information about this please visit the oficial MarketPlace.

vdproj - St4k, setup-projectvdproj. May 13. koder. 847. 3. votes. 2. answers. 1,647. views. Visual Studio 2013 and TFS Build 2015: Devenv.exe unable to produce MSI file. Insert one space character between switches and arguments on the same line. For example, the command devenv /log output.txt opens the IDE and outputs all log information for that session to output.txt. You can't use pattern-matching syntax in devenv commands. Devenv switches. The following command-line switches display the IDE and do the described task.

[Solved] Automate Visual studio build for creating setup files , vdproj). How can I automate the build (creating msi & exe). I have tried MSBuild.​exe, but not worked. (I was able to  MSBuild was the main tool of the deployers: they could compile and recompile, just setting building parameters editing the xml config file of MSBuild without opening the devenv. In fact, they often used MSBuild in pre-prod environment where there was not devenv at all. Nant is a similar tool by Apache Foundation.

I need to build a project that is not supported by , Solution. Call devenv from team build using InvokeProcess for .vdproj projects. If you do it will fail because “.vdproj” is not equal to .vdproj. Unable to compile vdproj with devenv - 'targeting 'x64' is not compatible with the project's target platform 'x86'' a guest Apr 5th, 2012 224 Never Not a member of Pastebin yet?

Comments
  • I am unable to do so. See attached screenshot.
  • @sonstabo: am commenting to Hans. Please excuse my interruption, it will be short.
  • Properties window, not the Project + Properties dialog. Use View + Properties Window if necessary.
  • Ahhhhhhhhhhhhhhhh... Build: 13 succeeded or up-to-date, 0 failed, 0 skipped
  • Worked for me too, magic! Thanks! I don't know why Microsoft was not notified about the importance of this simple and basic action...
  • I don't know why such a way. Is that a bug ?. ok but it worked. Thanks