Search code examples
c#tfsprojects-and-solutionscsproj-user

.csproj.user issues when checked into TFS


We made the mistake of allowing .csproj.user files to be checked in to TFS so we could set "Start external program" defaults. This worked poorly, especially when branching.

Now we're trying to undo this.

If I delete the .csproj.user file for a project and then try to set new project debug properties, I get:

TF14050: Cannot change item $/xxx.csproj.user because it already has a pending change that is not compatible.

If I check in the delete and make changes, TFS then tries to re-add my .csproj.user file.

How can we fix this for existing projects in source control?

Update:

I think destroying them is the best option; we ended up just deleting them with the TFS Power Tools, though. The trick was to first Remove the Source Control File Type we had for *.user, even though it was already disabled. Now TFS appears to completely ignore these files.


Solution

  • I suggest that you use the Destroy command. Be careful since it deletes permanently. MSDN documentation: http://msdn.microsoft.com/en-us/library/bb386005.aspx

    Start a Visual Studio 2010 Command, and use tf.exe ...