An Integrated Development Environment (IDE) such as Visual Studio 2005 adds SCC provider info in solution/project files (*.sln, *.vbproj, *.scc, *.suo) when the solution is added to source code control system.
If a Visual Studio 2005 solution has been checked into Harvest using Harvest Workbench, this information does not exist, although the project/solution is under Harvest source control. As a result, an 'Add to Source Control' from the IDE to the same location in the Harvest Repository will result in failure.
To correct this situation, the user needs to perform a 'bind' from the IDE following the CORRECT steps described below.
EXAMPLE1: INCORRECT: A Visual Studio Project ...
... whose files have been checked In using a Package in Harvest workbench:
When you try to open this Project via File - Source Control - Open from Source Control in Visual Studio you will get this error:
EXAMPLE2: INCORRECT: Try to first Check Out for Update all Visual Studio files from the Package:
Open the Visual Studio files in Visual Studio 2005.
When you try to File - Source Control - Add Solution to Source Control in Visual Studio you will get this error:
EXAMPLE3: CORRECT: Instead go to File - Source Control - Change Source Control and Bind each Project to their respective locations in the Harvest Repository using the Set Context dialog that appears when you click 'bind':
E.g. the Solution file is located at the root:
and the Project files are located in their respective folders:
Bind solution and each Project until their Status is Valid:
Click OK. That is followed by this warning:
Click OK. Depending on how may Projects you have "bound", this may take a while.
Choose the FIRST option in the follow-up dialog box:
After this is finished, all Visual Studio files should have an SCC icon indicating that
- They are now under source control and
- They are currently checked out : (the icon is Red Hook)
Check In all the Visual Studio files:
Again, this may take a while depending on how many files you have.
Your Visual Studio files have now been successfully "bound" by the Harvest VCI: