none
Changing build configuration from 'Any CPU' to 'x64'

    Question

  • I have 3 projects in one solution and had built them initially with config setting set to 'Any CPU'. Due to change in project requirement, I had changed them to x64 and build again, but the build is failing.

    Tuesday, September 27, 2016 7:26 AM

Answers

  • Hi Anuj.TataSteel,

    Please share the detailed error messages, please also compare your apps using X86, check it again.

    Like this document here:

    https://blogs.msdn.microsoft.com/dsvc/2008/06/27/x86x64ia64any-cpu/

    If you use this option code generated can run on any platform.  Pure managed code can only have this option. To be very precise, It will compiled into 32 bit code on a 32 bit machine and into 64 bit code on 64 bit machine.

    So my understanding is that if your process is 32 bit, it would load the 32 bit assembly in 32 bit machines. So you'd better to check your process and the System Environment and the assembly version.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, September 29, 2016 10:02 AM
    Moderator

All replies

  • Hi Anuj.TataSteel,

    To have a better understanding of your question, there are some clarifications with your:

    1. Please tell us your project type and your Visual Studio?

    2. Share us the failing error message。

    3. Or you could send us your project to us, we could try to do a test on our side to see if we could reproduce the same situation.

    Besides, you may create a new project the same type as existed ones , change "Any CPU" to "x64",

    to check if the same error result shows, suppose it fails again, you may need to go to Control Panel to repair your VS.

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click HERE to participate the survey.

    Wednesday, September 28, 2016 7:36 AM
    Moderator
  • Hi Anuj.TataSteel,

    Please share the detailed error messages, please also compare your apps using X86, check it again.

    Like this document here:

    https://blogs.msdn.microsoft.com/dsvc/2008/06/27/x86x64ia64any-cpu/

    If you use this option code generated can run on any platform.  Pure managed code can only have this option. To be very precise, It will compiled into 32 bit code on a 32 bit machine and into 64 bit code on 64 bit machine.

    So my understanding is that if your process is 32 bit, it would load the 32 bit assembly in 32 bit machines. So you'd better to check your process and the System Environment and the assembly version.

    Best Regards,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, September 29, 2016 10:02 AM
    Moderator