Matthijs
Matthijs

Reputation: 3170

Add existing project to blank solution in source control

I am trying to put several existing projects in one blank solution. This solution plus existing projects then need to be added to TFS source control.

Is there any way to achieve this? I simply am not able to find out how to get this done. Adding the project to a blank solution is relatively easy. Except it only places references to the existing project, rather than adding the files to the solution.

So when checking-in at sourcecontrol, it does not recognise the projectfiles as they do not get added to the solution, just references.

How can I get this done?

Upvotes: 0

Views: 444

Answers (1)

Matthijs
Matthijs

Reputation: 3170

I managed to figure it out.

  1. Add projectfiles of the project to be added to the solutiondirectory.
  2. Add a reference to existing project (the one now in your solution directory).
  3. In Windows Explorer, rightclick on the projectmap you just added and navigate to "Team Foundation Server" --> "Add".

The showing messagebox will describe which files will be added (they should be ONLY projectfiles, no bindirectory or anything).

Then reopen the solution in Visual Studio and the project should appear to be in source control.

Edit: The changes to show up in the pending-changeswindow, you just have to add them manually. They should show as "detected". Select these to be promoted and you should be able to check them in.

Upvotes: 0

Related Questions