tfs2013

Moving files lose history in TFS 2013

 ̄綄美尐妖づ 提交于 2019-11-27 22:14:51
I'm using VS2013 Update 4 with TFS 2013 Update 4. In Source Control Explorer, whenever I move a file from one folder to another I can see that the file's history is preserved in the new location. However, that history is gone when I check-in the pending changes. The same thing happens when I try to run "tf move" command. So, how can you move a file in TFS and still keep the file's history? When a file is renamed correctly, the History is not "Gone", it's associated to the "old name" instead. A rename that is done the right way (tracked as a rename and not as an delete+add) has a drilldown

TFS query for tasks with no parent

风流意气都作罢 提交于 2019-11-27 14:21:44
问题 I would like create a Flat list of work items query in TFS in which the results contain all of the specified PBI and Bug cases and any Task cases that have no parent. It's that Task with no parent part that has me perplexed. I cannot see a way that I can do what seems so obvious such as (Parent Link Count = 0) because that attribute is not exposed to me though, strangely, some other link type counts are. Any ideas? 回答1: You need to change the type of your query to the Direct Links query, then

Build on TFS 2013 failed but okay locally

杀马特。学长 韩版系。学妹 提交于 2019-11-27 13:09:06
When I checked in the code, TFS 2013 built the solution automatically. It is okay in local VS 2013 but failed in TFS. Here is the summary. Summary FTPProcessor | Any CPU 1 error(s), 56 warning(s) $/xxxx/NewServiceHost/New-Branch/NewServiceHost/packageRestore.proj - 0 error(s), 0 warning(s) $/xxxx/NewServiceHost/New-Branch/GenericWindowsServices.sln - 1 error(s), 56 warning(s) C:\Builds\1\xxxx\FTP Processor (New)\src\.nuget\nuget.targets (71): The task factory "CodeTaskFactory" could not be loaded from the assembly "C:\Program Files (x86)\MSBuild\12.0\bin\amd64\Microsoft.Build.Tasks.v4.0.dll".

Is out there any REST API for TFS 2013 On-Premises installation?

允我心安 提交于 2019-11-27 12:38:35
问题 We use company Team Foundation Server 2013 for source code and task management. Is there a way how can I manipulate work items within backlog over REST API? Our project is accessible via web url: https://tfs.company.com/tfs/ProjectCollection/Project I have found this: https://tfsodata.visualstudio.com/ but this seems to work only for projects within https://visualstudio.com. I would appreciate also some examples. Thanks! 回答1: Not in any officially supported manner. That said, it doesn't take

How to undo another user's checkout in TFS via the GUI?

痞子三分冷 提交于 2019-11-27 10:10:02
As the resident TFS admin, on occasion I am asked to undo a checkout (usually a lock) that a user has on a certain file. This can be done via the command line using the TF.exe utility's Undo command (see http://msdn.microsoft.com/en-us/library/c72skhw4.aspx ), but that's kind of a pain. Is there a way to undo another user's checkout via the GUI? brett rogers Out of the box, no, but there are at least a couple of options via add-ons. TFS Power Tools TFS Power Tools (Visual Studio 2010) TFS Power Tools (Visual Studio 2012) TFS Power Tools (Visual Studio 2013) TFS Power Tools (Visual Studio 2015)

Copy files from tfs versioncontrol to directory with PowerShell

南笙酒味 提交于 2019-11-27 03:36:59
问题 Does somebody know if it is possible to Copy files from TFS (2013 Update 2) source control to a specific folder on your computer? Let's say I have the server path $/BuildTemplate2013/BuildProcessSource and I want all the files of that directory to be copied/downloaded to C:\destinationDir with PowerShell. Is that possible? I have the TFS 2013 Update 2 Power tools installed but I can't find any command for that... 回答1: I've created a PowerShell script that connects to the TFS server with the

How to change workflow state of the newly created TFS work item through API?

╄→гoц情女王★ 提交于 2019-11-26 23:33:36
问题 I'm creating a work item migration application from "something" to TFS 2013, and I want to have the TFS work items to be in corresponding workflow states as in source system. For instance, if the source work item is in "Closed" state, I want it to be in "Done" state in TFS. I have followed advises in this article, which suggests to set BypassRules property of the WorkItemStore object to true in order to be able to set CreatedDate field. I suppose, the same applies to changing the workflow

Moving files lose history in TFS 2013

穿精又带淫゛_ 提交于 2019-11-26 20:56:45
问题 I'm using VS2013 Update 4 with TFS 2013 Update 4. In Source Control Explorer, whenever I move a file from one folder to another I can see that the file's history is preserved in the new location. However, that history is gone when I check-in the pending changes. The same thing happens when I try to run "tf move" command. So, how can you move a file in TFS and still keep the file's history? 回答1: When a file is renamed correctly, the History is not "Gone", it's associated to the "old name"

Build on TFS 2013 failed but okay locally

烈酒焚心 提交于 2019-11-26 16:14:33
问题 When I checked in the code, TFS 2013 built the solution automatically. It is okay in local VS 2013 but failed in TFS. Here is the summary. Summary FTPProcessor | Any CPU 1 error(s), 56 warning(s) $/xxxx/NewServiceHost/New-Branch/NewServiceHost/packageRestore.proj - 0 error(s), 0 warning(s) $/xxxx/NewServiceHost/New-Branch/GenericWindowsServices.sln - 1 error(s), 56 warning(s) C:\Builds\1\xxxx\FTP Processor (New)\src\.nuget\nuget.targets (71): The task factory "CodeTaskFactory" could not be

How to undo another user's checkout in TFS via the GUI?

冷暖自知 提交于 2019-11-26 15:03:30
问题 As the resident TFS admin, on occasion I am asked to undo a checkout (usually a lock) that a user has on a certain file. This can be done via the command line using the TF.exe utility's Undo command (see http://msdn.microsoft.com/en-us/library/c72skhw4.aspx), but that's kind of a pain. Is there a way to undo another user's checkout via the GUI? 回答1: Out of the box, no, but there are at least a couple of options via add-ons. TFS Power Tools TFS Power Tools (Visual Studio 2010) TFS Power Tools