Add a VS2012 Project to TFS

Background

You have a solution already added to the source control TFS.  Then you start renaming some of the projects within the solution.

Problem

Then you get error saying that the binding of the project is invalid, and you don’t see the project listed in Source Control Explorer.  You also notice that the project does not have a source control  (i.e. blue lock icon) next to it in Solution Explorer. 

You try to add the project via Solution Explorer, but there is nothing like “Add project to source control”.  You try unbind and then bind the project with no success.

Solution

  1. Use Source Control Explorer
  2. Right-click on the solution folder and select “Add Items to Folder…”
  3. Select the folders of the projects you want to add to TFS and click Finish.
  4. Remember to Check In to commit the changes.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s