rename project in TFS
Rename existing project in TFS
We are happy to let you know that this feature is now available on Visual Studio Online and in TFS 2015 RC. You can find details in the release notes at https://www.visualstudio.com/en-us/news/2015-apr-24-vso. More information is available on Brian Harry’s blog (http://blogs.msdn.com/b/bharry/archive/2015/04/24/team-project-rename-available-on-vs-online.aspx).
TFS Program Manager
Christian Loder commented
Is there a way to turn off the Mail Notification? ( https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/13019715-possible-to-turn-off-notification-email-when-renam )
@TonyPhan another simple way without install the fix is rename back the project collection and wait for the Update 4 RTM for Visual Studio 2013 or wait the RTM of Visual Studio 2015.
FYI, for my previous post, the fix is to do a get latest on the entire branch, which will pull in the update.
Careful folks, I ran into a big issue renaming a test project! After the rename, I get the following error...
A team project mapped in your workspace '***;Username' has been renamed. The version of the client you're using doesn't support reacting to a team project rename within a local workspace. To continue using this workspace, you can upgrade to Visual Studio 2015 (RC), or you can get the latest update for Visual Studio 2013. If you can't update your client or are using Visual Studio 2012, then you can shelve your changes, create a new workspace and then unshelve your changes. See renaming a team project for more details: http://go.microsoft.com/fwlink/p?LinkId=528893
I'm on VS2013, didn't realize there was an update but after this error, I found an update that's purportedly the newest (2013.4) but that didn't fix my issue. Did some research and actually found a newer version (2013.5) but that still didn't fix it! Still trying to figure out how to fix this issue but want to warn others.
If this is completed please answer Allen Feinberg's questions from Brian's blog post:
The rename dialog shown (vsalmdocs.azurewebsites.net/.../ProjectRename1.png) doesn't give the user ANY indication that what they could be doing could cause catastrophic damage to the TFS environment*.
*If someone does rename a team project how can we audit who did it and when? As much as I want the rename feature, is there anyway to restrict which Team Project administrators can rename team projects?
Here are my fears (from the documentation):
*"If you don't restart the client, then operations that use the cached team project name will fail." Failures for users are terrible and we can't take TFS offline for the entire engineering group, for a simple rename, does the rename invalidate the cache on the clients and refresh, or give the user ANY indication that a rename just took place?
*"After you restart Microsoft Test Manager, in RC, cancel the "Connecting to your team project..." dialog box and then connect to the renamed team project. This is due to Microsoft Test Manger holding onto the old project rename even after restart." Even AFTER restart, YIKES! Will this improve in the final release or will our help desk get continued calls and have to tell our test engineers to cancel?
*"Any additional clients which use the .NET Team Foundation Server Client Object Model" What about the TFS Power Tools and the shell extensions, if someone is doing a checkin midway through and a rename takes place, what happens to the check-in and the engineers workspace? What about SQL Server Mangement Studio (we still have sqk devs that have to stay on SQL 2008 for SSIS development)? What about MSSCCI for visual studio 6 development?
* "Visual Studio 2013 Update 5 (RC or newer)" We have clients with 2010, 12, 13, 15, but we don't have an update 5, is update 5 required, how do we get update 5?
*"Some build definitions do not pick up the new team project name to use when pulling sources. In these cases the team project name will need to be manually updated." Some? All of our build definitions (hundreds of them) use custom assemblies, so will ALL of our builds break? Yikes, please tell me this will be fixed for release. Is there any automated way to fix all of the build definitions? This seems like a SHOW STOPPER to be able to allow anyone to rename a team project. Manual??? Can you provide any tooling? Is there any guidance about what we need to fix and how we can fix it so that the next rename won’t break our build definitions?
*"Unlike work item queries, query-based test suites are stored differently and can't update the team project name after rename. " Um....we have thousands of query-based test suites, you can't go breaking ALL of our query based suites by renaming a team project, again this seems like a complete SHOW STOPPER. Manual??? Can you provide any tooling?
*“If your team uses SharePoint Integration that has custom queries or web parts, update explicit references to the team project name in those custom queries and web parts.” You CANNOT just go breaking countless queries and web parts without given us a heads up about which queries and web parts are going to be broken. We rely heavily on SharePoint and have developed custom web parts and SharePoint dashboards…so if they are going to be broken is there any tooling or guidance about what we need to fix and how we can fix it so that the next rename won’t break our web parts and dashboards?
*” Yes, any default artifacts created in the team project get renamed along with the project if they share the same name as the team project. This includes artifacts such as the default team, team room, and Git repository (in RTM). Renames of these artifacts are done as a best effort.” Best effort seems like a HUGE copout. How can we check that ALL of the artifacts are renamed successfully and completely” What does best effort mean, what if it fails on say work item charts…speaking of work item charts what happens to the graphs of the charts after a rename?
* “Why can't I open queries saved to disk after a rename” 1) I didn’t know I couldn’t…thank you for telling me, AFTER the fact? What else won't I be able to do AFTER I rename a team project?
“You will not be able to open them after a team project is renamed. You can use Visual Studio 2012 or newer to open them.” So I have to use 2012, why, any update required? We have third party tooling that creates custom queries…how do we need to update that code to handle renames?
thank you, but you would have to wait to release the rename of the project feature until the RC would not be out :)
Brian Keller commented
No, the CTP you installed is not the same as the RC which you will need to fix this scenario. We released the VS2013 Update 5 RC today: https://www.visualstudio.com/news/vs2013-update5-vs
Or you can try VS 2015 RC: https://www.visualstudio.com/products/visual-studio-2015-downloads-vs
Edgar Salazar commented
Kevin Adams commented
After a rename of a test project I cannot open anymore other TFS projects because I obtain the error:
"A team project mapped in your workspace '***' has been renamed. The version of the client you're using doesn't support reacting to a team project rename within a local workspace. To continue using this workspace, you can upgrade to Visual Studio 2015 (RC) or you can get the latest update for Visual Studio 2013..." I installed the Update 5 CTP for VS2013 and Visual Studio 2015 Preview (is it the same of RC?) but I cannot access to the workspace.
Patrick R. B. Maestri commented
Perfect! Finally :)
I don't know if anyone has tried the TFS integration tool, but you can change the name of a project using this tool. The only thing to be aware of is if you have any files in source control that are deleted, you need to either undelete them or permanently delete them before processing the project. To rename the project just setup a new project, delete the build files in source control and then reintegrate the old project into the new one with the new name. Hope this helps.
Ronnie Wilkins, Jr. commented
Definitely a needed capability
Prashanth KR commented
Renaming a team project is a great feature. But what will happen to the view history changesets?
Vagner Monteiro commented
Great! It will be very useful.
Jim Keena commented
I have waited almost 4 years for this feature! Thank you!
Matt Ros commented
Jarkkow I like your list, alot. It's taken Microsoft 10 years to get to this feature. Been broken and reported on connect.microsoft.com since TFS 2005. Surely Brian Harry will ensure that the feature will be complete, work seamlessly, and be easy to use. I really like your suggestion that renaming a team project should NOT require down time...it should be like live migration in HyperV where the VM never goes down...and when renaming a team project I shouldn't have to tell every dev to stop what they are doing....disable all builds, stop project managers from updating workitems, etc. TFS should just seamlessly handle the rename and let clients continue to work and when it's complete and the new name is in place...just refresh the client with the new name. Oh and, please for the love of god...MS don't make me change any settings on our MOSS server...that process takes weeks from our internal IT group. Again just handle it nicely and the 10 year wait will have been worth it.
any update on the status?
Date is still TBD? Any updates?