snakile
snakile

Reputation: 54561

TFS: Check In after renaming a project

I've renamed one of the projects in a Visual Studio solution. Renaming the project involved renaming its directory and as a result the paths to some files have changed. The solution is under TFS source control. When trying to check in I get a "file not found" error displaying the old path of one of the files. How do I check in the changes?

Upvotes: 4

Views: 1800

Answers (1)

Yuriy Shinbuev
Yuriy Shinbuev

Reputation: 427

As I know, when you rename the project, underlying source folder path keeps unchanged (maybe it depends of Visual Studio version).

Try this:

  1. Rename the project folder from Source Control Explorer.
  2. If you have errors with old path, try to unload the project from Solution Explorer, open proj file for edit, and replace old path entries with a new one.

Don't forget to update references from other projects.

Upvotes: 1

Related Questions