For reference, I am using Visual Studio 2010.
I have a custom build step that is defined as follows:
if exist "$(TargetDir)"server.dll copy "$(TargetDir)"server.dll "c:\program files (x86)\myapp\server.dll"
This works fine on my desktop on which 64-bit Windows is installed. However, when I build on my laptop, c: \ Program Files (x86) \ does not exist because it works with 32-bit Windows. I would like to add something that will work between both versions of Windows, since project files are versioned, and it is a real pain to change paths every time I work on my laptop.
If it were * nix, I would just create a symbolic link and end it. Any ideas?
source
share