R – Can the working directory be set in the project (.vcproj) file

solutionvcprojvisual-studio-2005working-directory

I have a script that generates a .sln file and a few .vcproj files for visual studio 2005. I need to set the WorkingDirectory option but its specified in the .user file. A file we cannot currently generate. I found the vcproj file definition at msdn, but it seems that this option cant be set from there.

How does one specify "Configuration Properties->Debugging->Working Directory" from the .sln or .vcproj file?

Best Answer

After you change your settings, and close the sln you will get a user file named something like:

Project_Name.vcproj.Domain.user_name.user

Change it to: Project_Name.vcproj.user and commit.

The next person who checks out the code will use this user file to create their user specific one.