Wednesday, September 05, 2012 2:54 PM
Recently we have been having problems with TFS and our code base. We have a section of tests that use Webdriver, and a section that use Coded UI. Lately, we've been having problems merging our code after a new build has been pushed out. Some folders show up as a white outline of a folder, which we can right click and select "include in project". We also notice some files missing, and we can't "get latest" to grab them. We have to go some round about way to do it.
But the main issue we are having is that our Coded UI maps are breaking. Instead of being the normal structure such as:
When we merge in the new code, the UI maps break out like:
I opened the .csproj in notepad++ and noticed that both the .cs and .designer.cs files no longer have a dependancy of the .uitest file. Now the .cs file has no dependancy, and the .designer is dependant on the .cs file. We can fix it easily, but it keeps breaking in every build and we have several maps we need to fix. What exactly could the problem be here? Also, referring to my frist problems of files not being included in the project, what is the issue there?
Thanks in advance,
Wednesday, September 05, 2012 8:07 PM
When you said “we've been having problems merging our code “, how did you merge your code? Do you mean you use TSF “Branching and Merging” and cause the problem?
Thursday, September 06, 2012 6:25 AMModerator
Hi Brett T,
Thanks for your post.
Before that merging problems, all the folder and files existed in your solution correctly and have the right dependency in your solution?
John Qiao [MSFT]
MSDN Community Support | Feedback to us
Thursday, September 06, 2012 1:32 PMI guess "merging" might not be the correct term here. After somebody checks a new build in we will all do "get latest version" on the solution. After we do that is when we seem to have the messed up coded ui maps and other folders.
Thursday, September 06, 2012 1:35 PMCorrect. After somebody checks in their code and we get the latest version, some (not all) of our Coded UI maps break, and some of the folders seem to no longer be included in the project, even though in source control explorer it shows all the correct files/folders in the correct place.
Thursday, September 06, 2012 2:27 PMHi Brett,
TFS 2008 and TFS 2010 has server side workspaces. Because of this, some times, due to many reasons, it’s possible that your workspace has got corrupted. i.e. it thinks that your local files are updated by they are not.
If you search on the internet, then you will find many reasons why this could happen.
I would strongly suggest following.
1. If you have any local changes in your current workspace then please shelve them.
2. Now create completely new workspace that has same server path but different client path. i.e. you will perform get latest on a separate location (may be temporary location) on your computer.
3. Then do get latest and verify that everything looks okay as expected from the server.
4. You can now unshelve your changes only if you had performed step 1 above.
5. Then perform merge operation and see if it works!
If it does, then it’s time to get rid of your old workspace (that has got corrupted) and start using the new one.
I hope this helps and if it does then please mark it as answer.
Wanted to automatically generate release notes from TFS ... Why not look at http://tfschangelog.codeplex.com
Friday, September 07, 2012 9:22 PMBesides Dharmesh’s viewpoint , per my personal experience, if you use Visual Studio 2010 on window7 X64 bit, the best way is to use “Run As Administrator” for Visual Studio 2010. Otherwise, it causes some issues.
Wednesday, September 12, 2012 6:19 PMSorry I haven't replied in a while. I was waiting for a new build to come out to see if either suggestion worked.
Like I said, it is somewhat random, but when I got the latest code (after creating a new workspace, and running VS2010 in Admin mode), one of the UIMaps ended up broken again. It still has the correct file structure in Source Control Explorer, but after I pulled the code down it ended up broken like before. All of the files seem to be included though so that issue might be solved.