I wrote a custom MSBuild task which calls SubWCRev.exe
, an executable which (typically) resides in C:\Program Files\TortoiseSVN\bin
, whether it's 32 or 64 bits, since TortoiseSVN provides both versions.
The problem is, Visual Studio 2010 only has a 32 bit version. So when my colleagues with a 64 bit box try to build using my shiny new task, $(ProgramFiles)
resolves to C:\Program Files(x86)
and it explodes saying that SubWCRev.exe
cannot be found. Because they have the 64 bit version of TortoiseSVN, which lives in C:\Program Files
!
Is there a better solution than hardcoding C:\Program Files
in my msbuild script, or having everyone use the 32 bit version of TortoiseSVN? (Actually it's a C# project, I tinkered with the MSBuild code a bit)