tfs2010

junit test results in tfs

人盡茶涼 提交于 2019-12-11 04:07:21
问题 How to make TFS 2010 show junit test results, that were generated by third-party tool? If it can't, probably, there is a way to convert junit report to xunit/nunit/mstest report. It would be also great! Thanks. 回答1: In order to publish Junit tests during TFS-Build you can make use of TFS Build Extension Power Tool. In there you can find a set of XSLT transforms from JUnit output into TRX. Employing TFS-Build to upload TRX should from then be possible. 来源: https://stackoverflow.com/questions

How to troubleshoot TFS error TF237086 “The work item cannot be saved…”

柔情痞子 提交于 2019-12-11 04:01:28
问题 I am getting the following error in a TFS 2010 build: The work item '59' could not be updated: 'TF237086: The work item cannot be saved because at least one field contains a value that is not allowed.' Work item 59 is a basic task I created to associate with my changeset on check-in. I have done no customization to the "task" work item. I get no errors when opening the task up and changing values manually. There is nothing in the build log that gives any clues as to what field is causing the

Branch deletion in TFS 2010 is not working

只谈情不闲聊 提交于 2019-12-11 03:54:06
问题 I know several people has already asked this question but I tried almost every approach and did not help me. I am trying to delete a branch in TFS 2010 and I am unable to do this operation. When I try to checkin my delete operation I get following message TF14098: Access Denied: User xyz needs Checkin permission(s) for $/Path to branch/*. I remember until few months back, I was able to delete the branch but not it is not working. I modify the files inside the branch but when I try to rename

Can we impersonate Windows user to TFS or TFS web access?

和自甴很熟 提交于 2019-12-11 03:53:59
问题 Is it possible to impersonate Windows user to TFS or TFS web access? 回答1: Yes, it is possible. You will want to do something like this: NetworkCredential serviceUser = new NetworkCredential(username, password, domain); ICredentialsProvider TfsProxyCredentials = new NetworkCredentialsProvider(serviceUser); Uri tpcUri = new Uri("http://yourserver:8080/tfs/yourCollectionName"); TfsTeamProjectCollection tpc = new TfsTeamProjectCollection(tpcUri, serviceUser); // Get the TFS identity management

Getting the BuildAgent information from a Build

跟風遠走 提交于 2019-12-11 03:53:47
问题 I have a IBuildDetail variable with the build information I need. Okay, but when I check the property BuildAgent it's showing this: build.BuildAgent' threw an exception of type 'System.NotImplementedException Then I tryed to check build.BuildController.Agents, it's nice I found the BuildAgent, but there are 7 build agents in this collection. I need only the build agent related to my build, not all build agents from that controller. Anyone knows how to get that information? (Select a build

How is the @Me TFS query variable derived?

谁说我不能喝 提交于 2019-12-11 03:38:21
问题 Does anyone know exactly how this value is derived? For half our team it seems to be "FistName.LastName". For the other half it is "FirstName LastName"... I thought I would be able to find this out in five seconds of googling but all I can find are vague statements that say "the current user" or "the current users alias". The MSDN article about query variables here describes it as being the current users alias but I have no idea what that means.... 回答1: When running a query in Visual Studio,

Is it possible to setup a private TFS checkin policy?

霸气de小男生 提交于 2019-12-11 03:24:10
问题 As I understand the checkin-policy are set on the server, but enforced on the client. Since they are enforced on the client, is there a way to setup a private checkin policy. I want to have a checkin policy for myself, but I can't set it on the TFS server as that would force everyone to follow that policy as well. 回答1: No that is not possible. If you're creating custom check-in policies you could have it filter by user, but you'd still have to turn it on at the server level and have every

TFS edit build log using custom activity

我的未来我决定 提交于 2019-12-11 03:17:23
问题 in TFS while we fire a build. the build log is generated with all the details. like testcases result, code analysis etc... if want to add some more details in build log. how to do that. i mean which API need to be used to edit build log from custom activity. please provide me some article links if possible. 回答1: Check this post by E.Hofman 回答2: These build customization articles should be useful for you (part1, part2). There is one example about adding a message into build log. 来源: https:/

Restricting the Assigned To column in TFS Work Item from being Same as Creator

微笑、不失礼 提交于 2019-12-11 02:43:20
问题 I am trying to request a code review in TFS. The developer creates a work item and assigns to anybody in the team asking for a review. Here, I just want to make sure none of the developers should be able to create a WI assigned to himself/herself (by creating a Task WI). It should go to only other people in the team. Is there any way I can edit the WI feature. I know there is a field "Assigned To" . Is there any way I can edit this field to prevent to assign to the current user. 回答1: You

Error installing TFS 2010 in Windows Server 2012

时间秒杀一切 提交于 2019-12-11 02:13:27
问题 When I try to install Team Foundation Server 2010 on Windows Server 2012, It get following errors: Error [ Application Tier ] TF255120: Compatibility mode for Internet Information Services (IIS) 6.0 is not enabled. Team Foundation Server requires this on this operating system. Error [ Application Tier ] TF255456: You must configure Internet Information Services (IIS) to use the Static Content component. Team Foundation Server requires the Static Content component in IIS. Error [ Application