I have a a project that resides on a "thumb drive" (a.k.a. memory stick). Due to Windows ability to change drive letters of thumb drives, I would like to specify the location of sub-projects using an environment variable. This allows me to set the thumb drive drive letter, depending on the PC that I am using; or change the variable when the drive letter changes (such as happens when adding a hard drive to the PC).
This issue has sub parts:
How do I tell Visual Studio (2008) to use environment variable when adding an existing project using the GUI?
Which files do I need to modify with the environment variable (*.dcp, *.vcproj, *.sln)?
Do I need to delete the platform specific
vcproj
files, such as*.vcproj.
*host_name*?
{Since I use different host PCs with the thumb drive, there are differentvcproj
files.}
I am using MS Visual Studio 2008, C++, on Vista and Windows XP (at least two platforms).