0

How to set path for a project in vs2010, so that it works in all systems without showing any path errors?

Faery
  • 4,552
  • 10
  • 50
  • 92
  • Could you be more specific? What went wrong? What path? – Emond Aug 24 '12 at 08:33
  • @Erno in my wpf application i have refferenced many dll's , so when i try to run on other systemIDE wont find those dll because of the local path of my system. Now i wanted to set PATH for my project so that it will run without that error in all systems –  Aug 24 '12 at 08:35
  • @dvvrd basically i need to set Environment Variable for my WPF project . In win32 is pretty easy you find that in properties->vc++Directories –  Aug 24 '12 at 08:38

2 Answers2

0

Relative path should be the same. You can set it as ..\..\..\ ( where .. is parent folder ) look here

Community
  • 1
  • 1
Artiom
  • 7,694
  • 3
  • 38
  • 45
0

You could make a mapped drive using subst to the folder containing the dll's that you refer to.

When you open the solution on a different PC just create a mapped drive with the same name to the local path that contains the dll's

Make sure you always set the reference to dll's on the mapped drive.

This way you only have to remember to subst the correct path.

Emond
  • 50,210
  • 11
  • 84
  • 115