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
13
votes
1 answer

Visual Studio Team Services Release Definition - Task to rename a file?

How can I rename a file in a release definition in Visual Studio Team services? Is there a built-in or marketplace task available or otherwise, how can this be achieved? Answer: Add the "Inline PowerShell" task from the marketplace Enter the…
Dan Cook
  • 1,935
  • 7
  • 26
  • 50
13
votes
1 answer

How to delete/unregister build agent on TFS 2015

I have set up TFS 2015 with dedicated server to store the build agent. However, when I delete the build agent on TFS 2015 app server, it still show up on build server, in windows "Services" Now the build server display error because the service…
Harrison
  • 161
  • 1
  • 1
  • 9
13
votes
1 answer

Tfs 2010 Build: Continuous Integration and Gated Check-In together?

I already have a CI build running on my Tfs2010 instance, but I'd like to get a Gated checkin build running as well. There are subtle differences between the ways I would like these two builds would run, however. Specifically, I'd like the Gated…
bwerks
  • 8,651
  • 14
  • 68
  • 100
13
votes
1 answer

Building specific branches on Visual Studio Team Services

I have a repository in VS Team Services which is setup as : -root | | -Dev (.sln) | | -Releases | | - Test (.sln) | - Live (.sln) Each build is working fine, however its pulling the entire repo and I just want it to pull a…
MiloTheGreat
  • 710
  • 7
  • 14
13
votes
2 answers

TFS build agent cannot locate npm

On a locally hosted TFS I'm using the "npm install" build step in my build definition. On the agent machine I have installed nodejs and can run npm from the command line. When I attempt to queue the build I get a pop up with the message: No agent…
weston
  • 54,145
  • 21
  • 145
  • 203
13
votes
8 answers

Automated generation of database change scripts

I'm looking for a way to automated the generation of change scripts for our databases. Currently we use Visual Studio 2008 database edition, which has the Schema Compare option, but I don't see a way to automated those actions. What I'd like to do…
thijs
  • 3,445
  • 1
  • 27
  • 46
13
votes
2 answers

How do I get rid of "API restriction UnitTestFramework.dll already loaded" error?

The following error pops up every now and then: C:\Program Files\MSBuild\Microsoft\VisualStudio\v9.0\TeamTest\Microsoft.TeamTest.targets(14,5): error : API restriction: The assembly 'file:///C:\Program Files\Microsoft Visual Studio…
Kevin Driedger
  • 51,492
  • 15
  • 48
  • 55
13
votes
1 answer

Large TFSUser\AppData\Local\Temp Directory on Build Machine

I'm using TFS 2012 Update 1 on Windows Server 2008 R2. We have the TFS build running under the account TFSUser. The other day we ran out of space on our build machine. Upon investigation I found that the folder C:\Users\TFSUser\AppData\Local\Temp…
Corith Malin
  • 1,505
  • 10
  • 18
13
votes
2 answers

How can I disable work item creation at the end of a failed Team Foundation Build?

I'm using Team Foundation Build but we aren't yet using TFS for problem tracking, so I would like to disable the work item creation on a failed build. Is there any way to do this? I tried commenting out the work item info in the TFSBuild.proj file…
Luke
  • 18,585
  • 24
  • 87
  • 110
12
votes
3 answers

Why and when to have multiple build agents?

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+…
p.campbell
  • 98,673
  • 67
  • 256
  • 322
12
votes
3 answers

Code coverage not working TFS build

I have enabled the code coverage in the build definition for a project in TFS. It's building as expected, unit tests are running as well but code coverage shows "No build coverage data available" see the screenshot below. Any help is appreciated.
mahfuz01
  • 453
  • 4
  • 20
12
votes
2 answers

How to get PAT from on-premise TFS2015

We want to migrate our custom steps from XAML build to new build task in TFS2015 on-premise. I installed NodeJS and tfx-cli but when tfx-cli want to connect to TFS I need to provide pat (personal access token) but I cannot find where I can get it.…
McMlok
  • 527
  • 4
  • 17
12
votes
6 answers

TFS Build error after installing Visual Studio 2015 Update 1

I installed Visual Studio 2015 Update 1 onto our build server and now I am getting errors copying the Typescript/Javascript files after the compilation completes. C:\Program Files …
Paul
  • 653
  • 6
  • 15
12
votes
1 answer

WriteBuildMessage not displayed

Consider this simple msbuild script (xaml): I have a tfs build definition…
Gerard
  • 13,023
  • 14
  • 72
  • 125
12
votes
2 answers

TFS drop, exclude obj folder using minimatch pattern

I'm setting up TFS 2015 on-prem and I'm having an issue on my last build step, Publish Build Artifacts. For some reason, the build agent appears to be archiving old binaries and I'm left with a huge filepath:…
Rodders
  • 2,425
  • 2
  • 20
  • 34