Custom Build Step Paths Between x86 and x64 in Visual Studio

Posted by Bob Somers on Stack Overflow See other posts from Stack Overflow or by Bob Somers
Published on 2010-04-18T07:51:43Z Indexed on 2010/04/18 8:03 UTC
Read the original article Hit count: 325

Filed under:

For reference, I'm using Visual Studio 2010.

I have a custom build step defined as follows:

if exist "$(TargetDir)"server.dll copy "$(TargetDir)"server.dll "c:\program files (x86)\myapp\server.dll"

This works great on my desktop, which is running 64-bit Windows. However, when I build on my laptop, c:\Program Files (x86)\ doesn't exist because it's running 32-bit Windows. I'd like to put in something that will work between both editions of Windows, since the project files are under version control and it's a real pain to change the paths every time I work on my laptop.

If this were a *nix environment I'd just create a symlink and be done with it. Any ideas?

© Stack Overflow or respective owner

Related posts about visual-studio