tfsbuild

InvokeProcess missing from the ToolBox?

我只是一个虾纸丫 提交于 2019-12-23 09:34:08
问题 I want to use InvokeProcess to run a batch file. Problem is that I can't find InvokeProcess in my ToolBox. How can I add this to my ToolBox? I need to know what assembly it lives in. 回答1: It seems you are missing all activities (not just InvokeProcess) from Microsoft.TeamFoundation.Build.Workflow.Activities. Those are to be found in Microsoft.TeamFoundation.Build.Workflow.dll Furthermore it seems that in tab "Team Foundation Build Activities" you 're including what per default is the content

Accessing the build revision number in Powershell script during TFS build

不打扰是莪最后的温柔 提交于 2019-12-23 09:17:38
问题 I can get the build number from IBuildDetail.BuildNumber but this is taken from the build definition and there fore might not include the revision number $(Rev:.r) or it might not be at the end. So I would like to get this number without having to parse it from the build number. Is this property available any where during the build? 回答1: Use the build variables. From PowerShell use $Env:BUILD_BUILDNUMBER if you’re using TFS 2015. See MSDN: Use a PowerShell script to customize your build

TFS Build Agent failed on Nuget Restore for: .Net Core + VS 2017 + private TFS Feed

房东的猫 提交于 2019-12-23 09:01:34
问题 I have: a .NET Core App, modified for VS 2017 and consuming a TFS Feed. When it was in VS 2015 , NuGet restore was working fine. Now using VS 2017 , NuGet restore it doesn't work returning a Failed to load msbuild Toolset ... Could not load file or assembly 'Microsoft.Build, Version=14.0.0.0 I also try to use dotnet restore and I got a 401 (Unauthorized) response. Apparently NuGet restore is the preferred way to do it, since it automatically authenticated for us, in order to use TFS Feed, but

How to get Workspace object in new TeamFoundation 2013 Templates

不羁岁月 提交于 2019-12-23 08:25:34
问题 In new version of TeamFoundation 2013 default build templates, the Workspace variable is missing. It is needed as intput parameter for few key activities like ConvertWorkspaceItem . How do I get current workspace for TfvcTemplate.12.xaml templates? I've tried to use this msdn thread but it's not working for me (returns null workspace name). Any suggestions? 回答1: There's a new activity in 2013 called GetLocalPath that replaces ConvertWorkspaceItem. The activity is under the Microsoft

The easiest way to test TFS2010 build template

北战南征 提交于 2019-12-23 07:46:14
问题 I'm currently working on creating a build template for TFS2010 builds. However, I notice that I'm currently 'spamming' the source control with every change I make to the template (and lots more for all the fixes for those changes). I wonder what the easiest way is to test the build templates I'm creating? Is there a way to change the template file and custom activity dlls that doesn't involve checking them in? I currently have a build controller and agent running on my developer machine,

The easiest way to test TFS2010 build template

允我心安 提交于 2019-12-23 07:44:09
问题 I'm currently working on creating a build template for TFS2010 builds. However, I notice that I'm currently 'spamming' the source control with every change I make to the template (and lots more for all the fixes for those changes). I wonder what the easiest way is to test the build templates I'm creating? Is there a way to change the template file and custom activity dlls that doesn't involve checking them in? I currently have a build controller and agent running on my developer machine,

Why and when to have multiple build agents?

一曲冷凌霜 提交于 2019-12-23 07:38:06
问题 Consider TFS 2010's ability for a Build Controller to have 1+ build agents. Since builds are a subjective topic to the team/environment, consider an environment where builds are performed on commit/check-in. Each Project Collection will have 10+ Team Projects, but perhaps only 1 or 2 are being committed to in a day. When should a TFS administrator consider creating a new build agent? Do multiple agents run in parallel? When a single agent is defined to a Build Controller, does it run serially

Microsoft Moles HostType errors in TFS 2010 Lab Management environment

半腔热情 提交于 2019-12-23 05:47:04
问题 I'm using TFS 2010 SP1 Lab Management and a variation on the LapDeployTemplate to execute build workflows and unit tests on a Hyper-V VM, managed via SCVMM (per the ALM Rangers Lab Management Guidance doco on codeplex). After configuring all of this, I've created a Test Plan containing test cases that map to automated unit/integration tests that use Moles. I've used tcm.exe import these test cases and get them into the Microsoft Test Manager. I'm getting the following error when I try to

PowerShell Syntax Error

拥有回忆 提交于 2019-12-23 04:32:20
问题 I am working on a powershell script that will create TFS build definitions. I have used below example as my starting point. http://geekswithblogs.net/jakob/archive/2010/04/26/creating-a-build-definition-using-the-tfs-2010-api.aspx I have the script done in powershell and it creates me a build definition file in TFS. One thing I am stuck in is creating Process information such as "Item to build" and "Projects to build". The C# code for this is given below //Set process parameters varprocess =

tfsbuild delete/destroy - founds no builds for build specification

醉酒当歌 提交于 2019-12-23 01:42:03
问题 There are 100s of builds left in our build definition indefinitely, regardless of the retention settings: i want to delete builds with scripts, i am trying run from remote PC. our tfs server is 2015.2. tfsbuild destroy /collection:http://tfsserver:8080/tfs/ProjectCollection /dateRange:01/01/2017~31/12/2017 /buildDefinition:teamProject\Builddefintion output shows: No builds found for build specification . even though there are many builds meets the criteria. any help is appreciated. Thanks!