MSBuild and $(ProgramFiles) issue with 32/64 bits

后端 未结 2 822
我在风中等你
我在风中等你 2021-02-08 13:50

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

2条回答
  •  粉色の甜心
    2021-02-08 14:20

    Take a look it this:

    
    
      
        
          $(ProgramW6432)
          $(ProgramFiles)
        
    
        
      
    
    
    

    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).

提交回复
热议问题