tfs

Are TFS Build Agent User Capabilities' Values Obtainable Within Build Steps?

北城以北 提交于 2019-12-30 09:58:26
问题 I'm trying to write a build step within TFS that relies on knowing where the Build agent has nuget.exe stored (the standard nuget-install step mucks around with the order of arguments in a way that breaks build execution, so I want to run the exe myself using one of the batch/shell/ps steps). It would seem that setting up a capability on the Build Agent with that path would make sense, but I cannot seem to reference the value in any of my build steps, and I cannot find anything helpful on

No package found with specified pattern: D:\a\r1\a\**\*.zip

蹲街弑〆低调 提交于 2019-12-30 08:15:37
问题 I created a build definition in vsts with npm build and then I copy the build folder to the drop location. The build pipeline is working fine Then I created the release definition and it downloads the files correctly also: 2018-08-10T16:29:18.5241580Z Downloading artifact drop from: https://xx.visualstudio.com//_apis/resources/Containers/711976?itemPath=drop&isShallow=true&api-version=4.1-preview.4 2018-08-10T16:29:18.5252684Z Downloading drop/s/build/asset-manifest.json to D:\a\r1\a

How do I grant permissions to manage test plans in VSO?

雨燕双飞 提交于 2019-12-30 07:56:39
问题 I am unsure whether this is the correct stackexchange site to ask this question, however it is about software tools commonly used by programmers (sort of). I am collection administrator of 100s of .net projects that I have recently migrated from an on-premise TFS to VSO. I am receiving requests from developers to grant them permission to create/manage test plans. Now, these developers are members of the "Developer" and "Contributor" groups and as such have the following permissions: But even

TFS 2013 event handling on work item change

a 夏天 提交于 2019-12-30 07:48:13
问题 I would like to develop software which runs every time a work item is being created or changed in a TFS team collection. My TFS server version is 2013 and i'm planning to upgrade soon to 2015. I tried the following article but it doesn't work on 2013... What do you recommend? 回答1: Found the answer! here's my code: using Microsoft.TeamFoundation.Common; using Microsoft.TeamFoundation.Framework.Server; using Microsoft.TeamFoundation.WorkItemTracking.Server; using System; using System

Custom Check in policy in TFS?

廉价感情. 提交于 2019-12-30 05:23:33
问题 We have some xml files in the our project and whenever we check-in these xml files into TFS, We have make sure before checking-in that we have added those xml files to proprietary application. Now the new employees more often forget to add files into proprietary application before check-in and this is getting serious... We want kinda confirmation dialog (a reminder) asking the developers if they have added the xml files into the app. If yes then check-in otherwise keep it checkedout... Please

WCF Proxy Returning Array instead of List EVEN THOUGH Collection Type == Generic.List

China☆狼群 提交于 2019-12-30 04:03:25
问题 I have a VS 2010 solution containing a WCF Library project and another project consuming that web service. After opening in VS 2012, it was upgraded. The proxy now returns List<T> types as arrays, even though CollectionMappings is clearly set to Generic.List. What could be happening? Someone else has a similar problem here but he was downgrading from VS 2012 to VS 2010 instead. Edit: I double checked, and Reference.svcmap contains: <CollectionMappings> <CollectionMapping TypeName="System

Git-Tfs: A TFS changeset per Git Commit?

泄露秘密 提交于 2019-12-30 03:28:24
问题 At work we use TFS, and I'm trying to get the Git-TFS tool to work so that I have more flexibility when working with local commits before pushing them to our TFS repo. I have this working, but when I do a git tfs ct , it checks all my commits into one TFS changeset. Am I missing something, or is this how it's supposed to work? If it doesn't push each of my commits individually to TFS as separate changesets, then it seems to defeat the purpose of using git-tfs in the first place. 回答1: I use

How can I copy a TFS 2010 Build Definition?

落爺英雄遲暮 提交于 2019-12-30 02:40:07
问题 Is there any way to copy a build definition? I work in a mainline source control methodology which utilizes many different branches that live for very short periods (ie. a few days to a week). I'd really like to copy a build template and just change the solution to build. Is there any way to do this? 回答1: You can write an add-in to do it. Here's the code to copy an existing build definition: static IBuildDefinition CloneBuildDefinition(IBuildDefinition buildDefinition) { var

Increase the screen resolution on Test Agent

瘦欲@ 提交于 2019-12-30 02:28:06
问题 Running a automated test against a desktop WPF application works fine on my local machine and on Azure VM Windows Server 2012R2 when accessed via RDP. However, when the VM is used as build machine, controlled by test agent on TFS or VSTS, all test fails because of the screen resolution is set to 1024x768 screen resolution. The application is not configure to run until this display settings. Is there any way to change the screen settings when we deploy the test agent? Change VSTS agent session

Export TFS 2010 History to Excel or Text Document

旧街凉风 提交于 2019-12-30 00:28:07
问题 How do you export history from TFS 2010 that includes the user, date and the complete comment (not truncated)? For example, in Team Explorer: right-click team member name > show check-in history. This will bring up the user's check-in history, but the comments are truncated. 回答1: The easiest way is to connect to the TFSWharehouse from excel, then pull the data from the source control history in a excel sheet. This is really simple and very powerful. You'll find useful info here: http://www