Memo‎ > ‎

How do I set a path in visual studio?

posted Aug 7, 2010, 5:22 AM by Teng-Yok Lee

From http://stackoverflow.com/questions/428085/how-do-i-set-a-path-in-visual-studio

Search MSDN for "How to: Set Environment Variables for Projects". (It's Project>Properties>Configuration Properties>Debugging "Environment" and "Merge Environment" properties for those who are in a rush.)

The syntax is NAME=VALUE and macros can be used (for example, $(OutDir)).

For example, to prepend C:\Windows\Temp to the PATH:

PATH=C:\WINDOWS\Temp;%PATH%

Similarly, to append $(TargetDir)\DLLS to the PATH:

PATH=%PATH%;$(TargetDir)\DLLS
Comments