I wrote a custom MSBuild task which calls SubWCRev.exe, an executable which (typically) resides in C:\\Program Files\\TortoiseSVN\\bin, whether it\'s 3
This lets MyProgramFiles resolve to "C:\Program Files" for both 32 and 64 bit Windows (The ProgramW6432 environment variable is empty on non-64 bit versions of Windows).