Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. 32 and 64 bit versions of the same project

32 and 64 bit versions of the same project

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studioquestionannouncement
8 Posts 6 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Richard Andrew x64R Offline
    Richard Andrew x64R Offline
    Richard Andrew x64
    wrote on last edited by
    #1

    Is there any way I can configure Visual Studio 2019 so that when I build the solution, it automatically builds a 32 bit and a 64 bit version of the same native project at once? It's a pain to have to keep two different projects in sync to build two different executables.

    The difficult we do right away... ...the impossible takes slightly longer.

    P D V K 4 Replies Last reply
    0
    • Richard Andrew x64R Richard Andrew x64

      Is there any way I can configure Visual Studio 2019 so that when I build the solution, it automatically builds a 32 bit and a 64 bit version of the same native project at once? It's a pain to have to keep two different projects in sync to build two different executables.

      The difficult we do right away... ...the impossible takes slightly longer.

      P Offline
      P Offline
      Peter_in_2780
      wrote on last edited by
      #2

      Only if you share resources with Richard Andrew x32 ;P

      Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

      M 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        Is there any way I can configure Visual Studio 2019 so that when I build the solution, it automatically builds a 32 bit and a 64 bit version of the same native project at once? It's a pain to have to keep two different projects in sync to build two different executables.

        The difficult we do right away... ...the impossible takes slightly longer.

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You could always have VS build the x86 version and create a PostBuild event bat file and run the MSBuild command line to build the x64 version.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
        Dave Kreskowiak

        1 Reply Last reply
        0
        • Richard Andrew x64R Richard Andrew x64

          Is there any way I can configure Visual Studio 2019 so that when I build the solution, it automatically builds a 32 bit and a 64 bit version of the same native project at once? It's a pain to have to keep two different projects in sync to build two different executables.

          The difficult we do right away... ...the impossible takes slightly longer.

          V Offline
          V Offline
          Victor Nijegorodov
          wrote on last edited by
          #4

          You can use Batch Build: [How to: Build multiple configurations - Visual Studio | Microsoft Docs](https://docs.microsoft.com/en-us/visualstudio/ide/how-to-build-multiple-configurations-simultaneously?view=vs-2019)

          Richard Andrew x64R 1 Reply Last reply
          0
          • V Victor Nijegorodov

            You can use Batch Build: [How to: Build multiple configurations - Visual Studio | Microsoft Docs](https://docs.microsoft.com/en-us/visualstudio/ide/how-to-build-multiple-configurations-simultaneously?view=vs-2019)

            Richard Andrew x64R Offline
            Richard Andrew x64R Offline
            Richard Andrew x64
            wrote on last edited by
            #5

            Thank you Victor!

            The difficult we do right away... ...the impossible takes slightly longer.

            1 Reply Last reply
            0
            • Richard Andrew x64R Richard Andrew x64

              Is there any way I can configure Visual Studio 2019 so that when I build the solution, it automatically builds a 32 bit and a 64 bit version of the same native project at once? It's a pain to have to keep two different projects in sync to build two different executables.

              The difficult we do right away... ...the impossible takes slightly longer.

              K Offline
              K Offline
              K Personett
              wrote on last edited by
              #6

              I spend most of my development time using 64 bit Debug, but have to build both 32/64 and Debug/Release and test before I check in. I call MSBuild from a batch file to build everything. My dev environment is highly customized, and have a post build deployment script that runs and updates all 4 installations automagically to 4 different VMs that I have our products running on. At the end of each build, it triggers automated testing on each of those VMs.

              1 Reply Last reply
              0
              • P Peter_in_2780

                Only if you share resources with Richard Andrew x32 ;P

                Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                M Offline
                M Offline
                Member_15203599
                wrote on last edited by
                #7

                :thumbsup:

                M 1 Reply Last reply
                0
                • M Member_15203599

                  :thumbsup:

                  M Offline
                  M Offline
                  Member_15203599
                  wrote on last edited by
                  #8

                  you can check out here [Test} [^]

                  https://www.google.com/

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups