Questions tagged [tfsbuild]

Automated Builds using the Team Foundation Server / Visual Studio Team Services build system

Questions related to TFS builds, either in on-premise TFS or in Visual Studio Team Services. This includes task-based builds in TFS 2015/Visual Studio Team Services, TFS 2010-2015 and VSTS builds based on Windows Workflow build process templates, and MSBuild-based builds in from early on-premise versions of Team Foundation Server.

You might also be interested in these related tags:

3292 questions
20
votes
2 answers

TFS 2010 - Error occurred during copy: Path too long

We have an ASP.NET MVC project that we want to create a publish package from during an automated build. The build is using the unmodified default template with Arguments /p:DeployOnBuild=True /p:CreatePackageOnPublish=True. If I do a WebDeploy…
J. Horn
  • 215
  • 2
  • 5
20
votes
3 answers

TFS Build specific changeset and deploy it using the changeset number

I have a Build Definition to build a solution on my TFS. This works well, but it always builds the latest version. How can I force to build a specific changeset from the past? How can I use/pass this number to the "MSBuild Arguments" to use it…
Konrad
  • 4,329
  • 10
  • 54
  • 88
20
votes
6 answers

Signing assemblies with PFX files in MSBuild, Team Build, and TFS

I get this error when trying to build a project using Team Build (MSBuild) on TFS 2010: C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1970): Cannot import the following key file: CCC.pfx. The key file may be…
MikeG
  • 1,069
  • 1
  • 9
  • 19
20
votes
7 answers

Copy one file in target directory on deploy from visual studio team services

I'm using VSTS as a build server, and while building I want to copy the bin folder contents to the root of the target, and also custom files from another folder to this target. MSDN suggests I use a minimatch pattern, but it's copying files with the…
Georgy Grigoryev
  • 822
  • 2
  • 8
  • 26
20
votes
4 answers

TFS 2010 build error - imported project "project_path" was not found

Have been trying to build a solution which contains a number of projects and keep getting a recurring error. I have managed to get the build to partially succeed but always get the error shown below: C:\Builds\1\MBS.Payments.Forms.Mvc\MBS Payment…
CryoFusion87
  • 796
  • 1
  • 8
  • 28
19
votes
2 answers

How to Determine the Work Items Fixed in a particular TFS Build when using Branches?

We have begun using the following branching structure in TFS 2010: All changes so far have been performed in the Development branch, and all check-ins have been associated with a Task work item. The Tasks are all children either of a Bug or a…
John Saunders
  • 160,644
  • 26
  • 247
  • 397
19
votes
2 answers

TFS API - How to query builds independent of which build definition they belong to

It seems no overloads of IBuildServer.QueryBuilds(...) allows me to do that. Here's my code: TfsTeamProjectCollection tfs = context.GetValue(TeamProject); IBuildServer buildServer =…
Conrad Clark
  • 4,533
  • 5
  • 45
  • 70
19
votes
6 answers

How can I copy a Visual Studio Team Service build to a new project?

I'm moving a particular set of builds from an existing Visual Studio Team Service project to a new one. Unfortunately, I cannot locate a way to migrate the build definitions from one project to another. There doesn't appear to be an import/export…
jlo
  • 1,121
  • 1
  • 11
  • 16
19
votes
5 answers

Could not load file or assembly 'Microsoft.WindowsAzure.ServiceRuntime, Version=2.0.0.0

We are using Azure SDK 1.8 and it working fine on local. we are using TFS hosted build controller to deploy on azure. It was working fine before but sudden today we getting this error although we have no azure sdk dll version changed but online we…
SOF User
  • 7,590
  • 22
  • 75
  • 121
19
votes
2 answers

How to determine if a website is installed in IIS7 with Powershell?

I'm pretty new to powershell, and I'm trying to automate the removal of a prior version of a website and addition of the newer version as a part of a TFS 2010 Build Template (Windows Workflow 4.0). Is it possible to see if a website or web app pool…
Jarrett Coggin
  • 1,290
  • 2
  • 13
  • 14
18
votes
3 answers

TFS 2010 Build Automation and post-build event

In the project I've inherited, the original developer used a number of post-build events in his Visual Studio projects to copy around DLL's and stuff when building inside VS. This is causing some grief now that I'm trying to move these things to the…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
18
votes
3 answers

Is it possible to put delay between tasks or conditional loop

Is it possible to either loop or delay between running tasks in either build or release pipelines? I deploy containers as part of those pipelines and they take time to spin up and be available for webtests, so I can not run webtest immediately…
Gregory Suvalian
  • 3,566
  • 7
  • 37
  • 66
18
votes
3 answers

The OutputPath property is not set for project TFS2012

I have a build in our Team Foundation server which gives this warring: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets (610): The OutputPath property is not set for project 'Plugin.DeploymentTool.csproj'. Please check…
mortenstarck
  • 2,713
  • 8
  • 43
  • 76
17
votes
2 answers

Update Build Controller/Agents to build C# 6 /.NET 4.6 application

here's the scene: We use Visual Studio Online and an on-premise build server in our company network with TFS 2013 to build our solution after gated check-ins and releases. Now we upgraded from Visual Studio 2013 to Visual Studio 2015 Enterprise and…
David Hessling
  • 173
  • 1
  • 1
  • 7
16
votes
2 answers

MSDeploy batch file does not handle quotes anymore

As part of our build process we deploy our web applications using MSDeploy. This worked perfect until a few weeks ago (I think when we updated our build/TFS server to SP1 of TFS 2010). In our build definition there is a step to invoke a process.…
Michiel
  • 662
  • 5
  • 13