Link to home
Start Free TrialLog in
Avatar of ChiliPequin
ChiliPequin

asked on

Absolute File Path in Option File of VC++ 6.0 used in TFS Branching.

Hi Experts,

I have a project written in VC++ 6.0.  This project uses a lot of include files defined in the .opt file:

C:\AllProjects\Main\SupportFiles\IO.h
C:\AllProjects\Main\SupportFiles\Errors.h
C:\AllProjects\Main\SupportFiles\Rules.h
...

I am planning to move this project to Team Foundation Server to take advantage of the Main and Branch feature of TFS.  My concern is when I create a branch and get latest from TFS, my project wil be checked out to

C:\AllProjects\Branch\Release01\SupportFiles\IO.h
C:\AllProjects\Branch\Release01\SupportFiles\Errors.h
C:\AllProjects\Branch\Release01\SupportFiles\Rules.h

The .opt file checked out to C:\AllProjects\Branch\Release01 will still contain the include files defined with the original path in the Main folder.

Is there a way to deal with this issue?  Is there a way to edit the .opt file to change all references to the new location of the branch?

Thanks for your help.
SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
TheLearnedOne, i forgot to refer to your post. sorry.

Sara
Sara,

Thanks, but no worries here.

Bob
Avatar of ChiliPequin
ChiliPequin

ASKER

Thank you Sara and Bob for the advice.  I will research some more about the approach recommended by Sara.  I am not sure VC++ 6.0 allows relative path for include files specified in the .opt file.