Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6069085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:47:03+00:00 2026-05-23T09:47:03+00:00

I have a 32bit build agent on which our MSBuilds run. We recently added

  • 0

I have a 32bit build agent on which our MSBuilds run. We recently added a new 64bit machine to our build agent array, but some things in our TFSBuild.proj file is hard coded for a 32bit machine.

Is it possible to check whether the environment being built on is 32 or 64bit?

<Exec Command="&quot;C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe&quot; &quot;$(BuildDirectoryPath)\FooProduct/foo.vdproj&quot; /Build &quot;Release&quot;"/>

When running the build on a 32bit machine, it must point to C:\Program Files\… but on a 64bit machine, it must point to C:\Program Files (x86)\…

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:47:04+00:00Added an answer on May 23, 2026 at 9:47 am

    There is $(MSBuildProgramFiles32) property in MSBuild 4.0.

    More details at MSBuild Reserved Properties.

    The MSBuild subfolder under the
    \Program Files\ or \Program Files
    (x86) folder. This path always points
    to the 32-bit Program Files folder.
    For example, on a 32-bit machine, the
    path is to the Program Files folder.
    For a 64-bit machine, the path is to
    the Program Files (x86) folder.

    <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
             DefaultTargets="Test"
             ToolsVersion="4.0">
      <Target Name="Test">
        <Message Text="&quot;$(MSBuildProgramFiles32)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" />
      </Target>
    </Project>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've exchanged my dev machine (WinXP/32bit) to a new one (Windows 7/64bit). Now I
I have a dll that comes in both 32bit and 64bit version. My .NET
I have an application that we're trying to migrate to 64bit from 32bit. It's
I have been running Apache HTTPD in 64bit mode by stripping out the 32bit
I have the following scenario: - 64bit Windows Server 2008. - 32bit .NET application
I have a 32bit architecture so I must build opa from source. Configure works
We have inherited an ant build file but now need to deploy to both
I have a c# unit test project that is compiled for AnyCPU. Our build
I seem to have a 32bit vs. 64bit problem here. It should be simple
I have a 32 bit build on FreeBSD v8.1 and attempt to run it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.