Visual Studio: Problems adding projects


An old problem reappeared. I was going to add existing projects (2 class libraries, 1 test project and 1 WCF services) to my current Visual Studio 2010 solution. The projects I was adding is stored in another team project than my current Visual Studio 2010 solution, and I had problem adding the by just copying the projects to my work space and use “add existing”. The solution to this is to follow the procedure below for each projects you need to “copy” into another solution:

  1. Make project director and all sub-directories writable
  2. Delete <ProjectFile.csproj.vspscc>
  3. Delete bin and obj directory
  4. Edit <ProjectFile.csproj> and remove lines with <SccProjectName>, <SccLocalPath>, <SccAuxPath> and <SccProvider>. These tags are used by TFS and needs to be removed before project can be re-added to any solution.
  5. Add project to the new solution

This will directly add projects to the solution that is connected to the TFS server.

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