tfs2010

TFS 2010 work item - Work item links

旧巷老猫 提交于 2019-12-11 01:59:18
问题 When a user opens a bug from a test case, I need to check if the test case is linked to a requirement item and if so I need to link the bug to the requirement item. How can I know this information? I use following piece of code: WorkItemLinkCollection links = _workItem.WorkItemLinks; foreach (WorkItemLink link in links) { } but I don't know how to get the link type and link id. 回答1: WorkItemLink is an abstract base class. ExternalLink, HyperLink, and RelatedLink inherit from it so the link

XML Tags, Properties and Their Definitions?

ぐ巨炮叔叔 提交于 2019-12-10 23:37:21
问题 I know this probably sounds like a rookie question, but I've looked and "Googled" all I know to "Google" and I still can't find anything. I'm looking for somewhere that has just a list of all XML tags, with their properties, and the definitions of those properties (aka - what they affect/do). I figured MSDN, W3C, or even here on SO would have this somewhere, but I couldn't find it in either place, as well as various others. And it may be that I'm looking in the wrong spot on these sites or

TFS 2010 Backup fails with “The current username failed to retrieve MSSQL Server service account. ”

家住魔仙堡 提交于 2019-12-10 22:58:43
问题 I am trying to backup my TFS 2010 instance using the TFS 2010 Power Tools issued in March 2011. In the verification step, I am getting an error that I do not know how to solve: "The current username failed to retrieve MSSQL Server service account." Can anyone help? 回答1: The answer, in my instance, required a few things: As Ryan noted in the comments above, the SQL service account cannot be "Local System". Create a new user account on your domain, and then follow the instructions Ryan provided

Web interface definition for TFS server?

删除回忆录丶 提交于 2019-12-10 20:44:27
问题 I'm working with a TFS2010 server in a C# project. To interact with it, I'm using native C# code like so: WorkItemStore WiStore = TfsTeamProjectCollectionFactory. GetTeamProjectCollection(new Uri("http://mgtfsweb01:8080/tfs")). GetService<WorkItemStore>(); String queryStr = "Select * from Issue where (ID = " + issue + ")"; WorkItemCollection witCollection = WiStore.Query(queryStr); This works fine. However, I would like to test this function. To do so, I don't want to point it to our

TF31002: Unable to connect to this Team Foundation Server for VS 2010, VS 2012 is connected to same server from same machine

主宰稳场 提交于 2019-12-10 19:20:07
问题 I have VS2012 and VS2010 on the same machine. VS2012 is connected to Team Foundation Server (now VSOL/Visual Studio Online) but, VS2010 gives below error when trying to add Team Foundation Server (now Visual Studio Online) to the list. TF31002: Unable to connect to this Team Foundation Server Possible reasons for failure include: -The name, port number or protocol for TFS is incorrect. -The team foundation server is offline. -Password has expired or is incorrect. For further information,

Custom Checkin Policy: Access to filecontent from changeset files

最后都变了- 提交于 2019-12-10 18:53:26
问题 I'm trying to whrite my own checkin policy. I want to review if any .cs file contains some code. So my question is, if its possible to get the content of every file from the changeset in the overriden Initialize-Methode and/or Evaluate-Methode (from PolicyBase). Thanks in advanced! 回答1: You can't get the contents from the files directly, you'll need to open them yourselves. For each checked In your Evaluate method, you should look at the PendingCheckin.PendingChanges.CheckedPendingChanges (to

TFS API BranchObjectCreated Event does not fire

浪子不回头ぞ 提交于 2019-12-10 17:40:22
问题 I have some code to automate the creation of build definitions in TFS. Now I'd like to have this code invoked whenever a branch is created. Looking at the API, I see that there is a BranchObjectCreatedEvent in Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer . So I've added some code to a console app to handle the event. private static void MonitorBranchCreated() { try { TfsTeamProjectCollection tfs = InitialiseTfs(); var vcs = tfs.GetService<VersionControlServer>(); var

Solution/Project name variable in TFS Build 2010

风格不统一 提交于 2019-12-10 17:29:05
问题 When creating a new build definition in TFS 2010 we specifiy a project or solution to build (Under the 'Required -> Items to Build' section in the 'Process' section of the definition. Is there any way to get hold of the name of the solution being built in the Workflow scope? I.e. is the there a variable available with this information inside that I can pass into a custom code activity elsewhere within the work flow? 回答1: If you open the build workflow and tunnel down into Compile and Test,

How to revert / undo unchanged files in TFS?

Deadly 提交于 2019-12-10 16:45:00
问题 I would like to know if there is a usefull command for undoing unchanged files in TFS. I have tried with the "tfpt uu" command. But it only undoes/reverts the files that was unchanged on the server and in my local workspace. Eg. all the files that was changed on the server but wasn't touched in the workspace is left as checked out. What I want is to revert/undo all the files that was unchanged in my workspace. The tfpt uu-command seems to be useless for the scenario. How can i revert/undo

Capture output of regsvr32 in an InvokeProcess TF Workflow Activity

青春壹個敷衍的年華 提交于 2019-12-10 15:47:55
问题 I have a build process setup to build a managed solution using team build. This solution requires an unmanaged component be registered with the server before we build the solution as we interface with it via COM. The activity (InvokeProcess) I use to register the ComObject looks something like this regsvr32.exe /s ComObject.ocx The activity (InvokeProcess) I use to unregister it looks something like this regsvr32.exe /u /s ComObject.ocx I have also added the WriteBuildMessage and