Visual studio 2013 team project has been deleted

12.9k views Asked by At

After adding a new web solution to source control in vs 2013 and check in for the first time, I get this error:

TF402484: The "PROJECTNAME" team project has been deleted. 
Undo any pending changes to that project or branches from 
that project in your local workspace. Then retry the operation.

If i try to choose "Undo any pending changes" it tell me that there are no pending changes. Now I cant "get latest" or "check in" any other solutions and I get the same error. The source control explorer doesnt show anything other than "working..." and I get the same error. The projects is not vissible to others in the team.

Anyone else experience something like this? I have remove the project from the workspace. Can I remove the project from VS 2013 in any other way?

8

There are 8 answers

0
MrHinsh - Martin Hinshelwood On

Open visual studio and go to team explorer. Then click the little plug icon to go to the "connect" screen. One there click the "connect to team projects" link at the top of the panel. This will give you a list of server and the projects that you have checked for your connection.

This the check mark for the project that no longer exists.

2
Fidah On

I just experienced this as my colleague deleted projects in TFS where I have connection to those projects. The way i solved it:

In Team Explorer, click to Pending Changes. you will see there are four section in it which is Comment, Related Work Items, Included Changes and Excluded Changes. Look at Excluded Changes section if there are any files which belong to deleted folder. If yes, right click at the file name and choose Undo.

0
Steve Kehoe On

The problem seems to arise when you have a folder under your root TFS local workspace directory which is not part of a TFS project. Since this is not actually a TFS project, the path does not exist on the remote server and the above error is persistently shown until the pending change is "undone".

For example, in my case I had a git repo under my TFS local workspace that contained the source code for an open source project I was using. Somehow TFS was trying to check in one of those files, and not surprisingly TFS could not find it on the remote server as it was just a local clone of a GitHub repository. After having the file re-added after several "undo pending changes". I copied the source code, deleted the file, and recreated it, finally free of the bonds of TFS.

It seems that the reason the file from the GitHub project got added to the TFS tracking system in the first place was because I added a file to the GitHub project from inside the TFS solution that referenced the GitHub project. This caused an automatic add to take place, triggering the issues described above.

1
Atron Seige On

Open solution in Visual Studio, right click solution name (in Solution Explorer) and select Source Control -> Undo Pending Changes... Find the items that are linked to the deleted project and undo them.

0
Sergio Gentile On

I try the following solution and it works well on my Pc:

  • Go to: C:\Users\\Source\Workspaces;
  • Delete the folder releted to the project deleted on the web.
1
theMost1ted On

This is how I solved it:

  • Go to Team Explorer.
  • In the left you will find "Folders".
  • Right click on "DefaultCollection" (or the collection the project you deleted -used to be in) and choose "Undo Pending Changes".
  • Choose the files of the project you have deleted.
  • Confirm the Undo changes.
2
t_plusplus On

The best thing to do is to click on the Pending Changes box (shown below) on the Team Explorer menu of Visual Studio. Then scroll down to the perpetrator project and undo the changes by right click => Undo pending changes (as detailed above).

This is better because Visual Studio won't even give you the opportunity to do anything as the error message will keep popping up.

Here is a screenshot of the button that you need to click in order to get to the Problematic project and undo its pending changes:

enter image description here

0
David Klempfner On

I needed to undo pending changes. Close Visual Studio. Then open the solution by double clicking on the .sln file rather than opening it from within Visual Studio.