- Dec 30, 2002
- 5,747
- 1
- 81
I can't for the life of me figure this one out, but it has to be simple. I just don't know what I'm looking for. Hopefully someone here can nudge me in the right direction.
What is the appropriate setting in visual studio (specifically VS2005) to change where the generated executable should be run from. The default behavior is that this is wherever the .vcproj file happens to be located. I want to set it to something else.
So for example say I had a simple console application that read in the contents of a file and printed it to the screen. The project might look something like this:
.\project.sln
.\project.vcproj
.\files\input.txt
.\src\main.cpp
and main.cpp looks for the input file in ".\files\input.txt" with this setup. The starting point of the relative path is wherever the .vcproj file is.
Say I wanted to move project.vcproj into an arbitrary directory that wasn't the root project directory but didn't want to change the code in main.cpp. How would I specify that through the project settings? It has to be something like SomeSetting="$(SolutionDir)" or SomeSetting=".\some\path\i\specify" or there's a macro similar to $(SolutionDir) that I can change, I just don't know what SomeSetting is and it's not obvious from trolling through the project properties menu.
What is the appropriate setting in visual studio (specifically VS2005) to change where the generated executable should be run from. The default behavior is that this is wherever the .vcproj file happens to be located. I want to set it to something else.
So for example say I had a simple console application that read in the contents of a file and printed it to the screen. The project might look something like this:
.\project.sln
.\project.vcproj
.\files\input.txt
.\src\main.cpp
and main.cpp looks for the input file in ".\files\input.txt" with this setup. The starting point of the relative path is wherever the .vcproj file is.
Say I wanted to move project.vcproj into an arbitrary directory that wasn't the root project directory but didn't want to change the code in main.cpp. How would I specify that through the project settings? It has to be something like SomeSetting="$(SolutionDir)" or SomeSetting=".\some\path\i\specify" or there's a macro similar to $(SolutionDir) that I can change, I just don't know what SomeSetting is and it's not obvious from trolling through the project properties menu.
