0

I am doing a project that involves files and DLLs and am working on different computers. so whenever I transfer my work to another PC I have to change the file path and the DLL's path. is there any way to avoid that??

2
  • 1
    Setup the same directory strcuture. That's how I usually do it. If possible use relative paths. In Visual Studio you can also use predefined variables.
    – Devolus
    Feb 4, 2014 at 13:54
  • Thank you all for your help .... I have used the $(SolutionDir) macro, as well as the .. operators
    – Feras
    Feb 4, 2014 at 19:54

2 Answers 2

1

Use relative paths. That's what they are there for! Never hard-code absolute paths into your projects or code.

0

Instead of using absolute paths (like C:\MyProjects\Project1 ...etc) try using the macros such as $(SolutionDir)\MyDllsDir

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.