tfs-power-tools

Check a file into TFS using Powershell

99封情书 提交于 2019-12-07 11:09:00
问题 As part of my continuous integration build I am creating an SQL script. This SQL script has to be checked back in to TFS after it is generated. I'm using the TFS Powertools in Powershell. The code I used on my machine was: Add-TfsPendingChange -Add -Item $filename | New-TfsChangeSet This worked fine on my dev box because the folder I was in is mapped to a TFS workspace. When I move it to my build server it no longer works because TeamCity doens't map it's checkouts to a workspace it just

How to delete a work item in TFS 2012?

此生再无相见时 提交于 2019-12-05 20:34:09
问题 This has been asked before but I'm struggling to find a way to delete a work item in Team Foundation Server. This looks promising: http://devmatter.blogspot.co.uk/2009/04/deleting-work-items-in-tfs-ui.html. But no luck with it so far. First tried the following command: witadmin destroywi /collection:"https://<<my TFS collection>>" /id:1223 It returned Unable to destroy work item(s) 1223. TF237090: Does not exist or access is denied. Unfortunately I can't download the "Delete Work Item"

How to open TFS Power Tools - Alerts Explorer

馋奶兔 提交于 2019-12-04 23:58:30
I have TFS 2010 and Visual Studio 2010 Ultimate and the April TFS 2010 Power Tools installed. I am a Project Collection Administrator on my TFS Server (so permissions should not be an issue). I want to open the alerts explorer, but when I right click on a project tab it is not there: Just in case I tried upgrading to the March version of the TFS 2010 Power Tools. There was no change. Opening the "Project Alerts" just gets me the normal Alerts dialog. I need to make a new alert. Any ideas how I can get the missing menu item back? Edit: I tried manually adding the menu item to the context menu.

Given a TFS changeset, how can I find what work item(s) it is linked to?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 17:25:28
It's easy to see what changesets are linked to a given work item. But is it possible, given a changeset, to find out what work item(s) it is linked to? If you have the changeset number then in TFS explorer in VS press CRTL + G and provide the changeset number and click OK. That will bring the change set in team explorer. Then you can click on a folder/file and select view history which will show you the work items related to it. See view changesets for more information. Also, check out this MSDN blog post Listing the work items associated with changesets for a path (From my Visual Studio 2017)

How to delete a work item in TFS 2012?

爷,独闯天下 提交于 2019-12-04 03:44:05
This has been asked before but I'm struggling to find a way to delete a work item in Team Foundation Server. This looks promising: http://devmatter.blogspot.co.uk/2009/04/deleting-work-items-in-tfs-ui.html . But no luck with it so far. First tried the following command: witadmin destroywi /collection:"https://<<my TFS collection>>" /id:1223 It returned Unable to destroy work item(s) 1223. TF237090: Does not exist or access is denied. Unfortunately I can't download the "Delete Work Item" utility mentioned in the article due to work's internet restrictions as it's on Skydrive. Also tried the

tfpt unshelve migrate showing “An item with the same key has already been added.”

守給你的承諾、 提交于 2019-12-03 22:03:55
I am follwing the example here Branch from local workspace because I have the same scenario. Shelveset details dialog appear, after clicking unshelve it showing "An item with the same key has already been added." Any advice please? As others have indicated in the comments, undoing changes from the main branch (presumably the SOURCE branch for the shelveset you want to unshelve), should fix the issue, allowing you to continue with the merge behavior. Ralph Willgoss I had a very similar issue to yourself and after trying a lot of things I discovered it was some pending changes we had been

tfpt.exe on Visual Studio 2017

只谈情不闲聊 提交于 2019-12-03 18:57:19
问题 Even after installing Productivity Power Tools extension for Visual Studio 2017 I still cannot run tfpt.exe to execute the command suggested on this post: C:\Development> tfpt unshelve "ShevesetName;UserName" /migrate /source:"$/Project/Source" /target:"$/Project/Target" Where can I find this program? 回答1: Just as Daniel said, they are two entirely different things. A supplement :TFS 2017 Process Template Editor is available In your case, you are trying to use the unshelve command to unshelve

Unshelve to another branch

↘锁芯ラ 提交于 2019-12-03 03:35:44
问题 I'm trying to unpack my changes to the another branch using TFS Power Tools. I'm trying to execute command tfpt unshelve /migrate "NuGet Build" "/source:$/ProjectName/Main/Source" "/target:$/ProjectName/Main/Source-NuGet" But it returns message 'tfpt : Unable to determine the workspace' . I'm running command from the directory that mapped to this project. Moreover I've tried to use tf workspaces /s:http://our-tfs . Does anyone know how to solve this problem? 回答1: You can define your path in

TFS: submit changes done locally in one branch to another branch

元气小坏坏 提交于 2019-12-03 01:09:35
问题 I made changes to a lot of files, and in the meantime I figured I rather commit this untested code to a yet-to-be-created branch, so that users of the existing code base are not affected. As I touched really many, many files and created and added new sub-projects etc., I want to avoid copying files and folders manually. What's the easiest way to get this done in Visual Studio? 回答1: This functionality is provided using tfpt unshelve /migrate . To use it, follow these steps: Create a shelveset

Without installing Visual Studio can I use Team Explorer or TFS power tools to check-in/check-out files through windows explorer?

主宰稳场 提交于 2019-12-02 22:06:21
We need to allow users to check-out check-in files in Windows Explorer. Is it mandatory to install Visual Studio in order to use Team Explorer or TFS Power Tools? What kind of licenses will be needed? Dylan Smith You can install Team Explorer which is free (but still uses the VS shell), this doesn't require any kind of Visual Studio license: https://blogs.msdn.microsoft.com/devops/2017/04/05/reintroducing-the-team-explorer-standalone-installer/ Then you can install the TFS Power Tools to get the Windows Explorer extension which allows you to do basic source control operations in Windows