Removing soltuion items from TFS2010 and "action caused a check out of the file(s)..." message
My solution structure looks something like this:
MySolution
FirstProject
SecondProject
SolutionFolder1
SolutionFolder2
SolutionItem1.txt
SolutionItem2.txt
- Then there are two workspaces with this solution at the same version used by two users on different computers.
- A solution item is removed in the first workspace and the change is checked 开发者_C百科in into TFS.
- In the second workspace the latest version is get from the TFS (the workspace is without local modifications and no files are checked out). Visual Studio displays this message:
Your action caused a check out of the file(s) C:\MySolution \MySolution.sln, and a new version from source control has been loaded in the development environment.
Now, there are two items in pending changes in the second workspace: solution file is checked out and the solution item is deleted. After undoing these changes and getting latest version, they appear again. These conflicts are resolved only during checkin which is a little bit confusing.
Is there a way how to get rid of this TFS oddity? Thanks.
I cannot find any answer but there is a workaround. Solution probably is not the best place to store complex folder hierarchies with a lot of files. When these folders and files are moved to own VS project then everything works well.
精彩评论