tfs2013

Strange Visual Studio TFS behavior when working on a Mac file share/unc path

半城伤御伤魂 提交于 2019-11-30 03:26:33
问题 I'm working on a Mac with Yosemite. Yesterday I installed Update 4 of Visual Studio 2013 and noticed a strange behavior when working with TFS 2013 (and TFS as SCM). My source files are mapped to a UNC path on my Mac as a local workspace. When I do changes to my files and try to check-in I get the following message: \\psf\Home\Documents\My\TFS\Customerproject\Source\Calculation\WeightCalculation.cs: Access to the path is denied. When I shelve my changes and unshelve them, I can check-in the

How to setup TFS 2013 build definition to build from Git tag?

两盒软妹~` 提交于 2019-11-29 22:15:50
问题 I want to create a special build definition in TFS 2013 to build from tag. The source control used in that project is Git. So, let's say I have a tag called v1.0 . I want this build definition to pull the sources corresponding to that tag and run a build. Triggers don't matter for now - it could be even manual. How is that possible? I can see you only have an option to choose branch on the Source Settings tab... Consider the advanced scenario: a build is triggered when a new tag is created,

TFS 2013 - Link Work Items via Spreadsheet

筅森魡賤 提交于 2019-11-29 18:01:17
I have an Excel worksheet with hundreds of TFS 2013 Work Item IDs populating both Column A and Column B. For illustrative purposes, let's just say I have the following: Row 1 to Row 100 of Column A: Populated with the Work Item IDs of 100 Bug Work Items Row 1 - Row 100 of Column B populated with the Work Item IDs of 100 Task Work Items. What I'd like to do is have an automated process, e.g. a script that iterates through the hundred rows of my Excel spreadsheet and link the work item IDs in Column A with the corresponding work item IDs in Column B on the same row, e.g. link the work items

Git submodule fails on TFS Build

妖精的绣舞 提交于 2019-11-29 09:23:24
问题 When I try to build using TFS with Git, there's a limitation whereby TFS's git provider doesn't yet support sub modules. Bit of a pain, but what the heck, I'm able to tell TFS to run a Batch file prior to compilation. I've used this to call a manual git script to update all my submodules in my "super" project. The command this batch file runs is simply: git submodule update --init --recursive This worked fine and dandy before I migrated the submodule source to TFS, however now the TFS build

Code Review before checking in to TFS 2013

不问归期 提交于 2019-11-29 00:34:38
问题 I'm trying to implement a process so that the manager can Review the code of all developers before the developers can check in to TFS 2013. Is there any process to require a review of the code by a human being before it is added to a real project? I'm using TFS 2013 with Visual Studio 2013. 回答1: TFS 2013 supports this out of the box, and is very straight forward to use. Developer needs to file a request for review in the team explorer: Go to Team Explorer Open pending changes Under "Actions"

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

我的未来我决定 提交于 2019-11-28 20:43:32
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! Richard Banks Not in any officially supported manner. That said, it doesn't take too much exploring to see that some of the APIs are already present in TFS 2013 already. For

How to undo another user’s checkout in TFS?

帅比萌擦擦* 提交于 2019-11-28 15:19:05
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 checked into source control. How do you undo another user's checkout? brett rogers There are at least 2 different ways to do this: Command Line There is a command-line utility called Tf.exe that comes with Team Explorer. Find the documentation here . It can be accessed by launching a Visual Studio Command Prompt window. The syntax of the command is: tf undo [/workspace:workspacename[;workspaceowner]] [/server:servername] [/recursive] itemspec [/noprompt] For one file tf undo

Copy files from tfs versioncontrol to directory with PowerShell

霸气de小男生 提交于 2019-11-28 10:25:21
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... I've created a PowerShell script that connects to the TFS server with the TFS assemblies. I then loop through the files on the server (in a specific path) and download it recursively.

TFS: Restore deleted folders and items

有些话、适合烂在心里 提交于 2019-11-28 07:54:11
I deleted some files and some folders in TFS. Many check in's later I found out that I need the deleted functionality back in my project. How can I restore the deleted files and folders? In Team Explorer (in Visual Studio): Tools | Options | Source Control | Visual Studio Team Foundation Server and select Show Deleted Items... Then in source control explorer you'll see the items greyed out. You can right click on them and Undelete. (This option will only be available if they, after the undelete, will be included in your current workspace). NB. in newer versions of Visual Studio (eg. 2013)

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

醉酒当歌 提交于 2019-11-28 01:44:55
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 state, as it also requires bypassing rules. So, I tried the following: // obtain collection and