Visual Studio

My Visual Studio project has references to libraries located in the Microsoft Windows file system, but the paths are different depending on whether I am developing on a machine running the 32-bit or 64-bit Windows operating system.
Microsoft Windows stores installed libraries, tools, and programs in the Program Files directory tree. From the legacy operating system this path is typically C:\Program Files\. With the advent of the 64-bit Windows operating system, the legacy 32-bit binaries are now in the path C:\Program Files (x86)\ and the 64-bit binaries are stored in the original C:\Program Files\. Unfortunately there is no standard environment variable provided by Windows to build platform independent paths for references.
An alternative is detailed in this blog. Following from this example, add the following PropertyGroup to your project before the ItemGroup listings:
  <PropertyGroup>
    <ProgramFiles>Program Files</ProgramFiles>
    <ProgramFiles Condition="'$(PROCESSOR_ARCHITECTURE)'=='AMD64' or '$(PROCESSOR_ARCHITEW6432)'=='AMD64'">Program Files (x86)</ProgramFiles>
  </PropertyGroup>

Then reference the property as a replacement token, e.g.:
    <Reference Include="Interop.EA">
      <HintPath>C:\$(ProgramFiles)\Sparx Systems\EA\Interop.EA.dll</HintPath>
      <EmbedInteropTypes>True</EmbedInteropTypes>
    </Reference>