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

Problems with long path in TFS Team Build when CreatePackageOnPublish is set to true.

We have a problem by build because of long path created by TFS Team Build when parameter CreatePackageOnPublish is set to true. In directory PackageTmp (see picture later) the package is stored, but I don't understand why this directory structure is…
Anton Kalcik
  • 2,107
  • 1
  • 25
  • 43
8
votes
2 answers

TFS Build: include branch name in "build number" field of assemblies

I'd like to be able to look at an assembly and quickly identify which branch it was built out of. What's the best way to cofigure TFS Build to include the name of the current branch in the Build Number field (or a more appropriate field) of the…
Robert Levy
  • 28,747
  • 6
  • 62
  • 94
8
votes
1 answer

MSBuild DeploymentModel unrecognised error in deploying SSIS package

I created a PowerShell script to automate deployment for SSIS projects and used it in a custom TFS task. Within this task I used a msbuild step to build the SSIS project which keeps failing with this error: Error MSB4067: The element…
user7400346
  • 799
  • 1
  • 8
  • 15
8
votes
5 answers

How do I insert the latest TFS changeset number into an aspx page?

When we were using SVN, we'd always print at the footer of our pages: "Revision XXXX". I've been looking, but I can't figure out how to do the same thing with TFS. Can anyone offer some pointers? In case this matters: we're using ASP.NET MVC. I'm…
Esteban Araya
  • 29,284
  • 24
  • 107
  • 141
8
votes
2 answers

How do I debug custom build processes in TFS 2010?

I know my build isn't working, but I can't figure out how to debug it. My only symptom is it only does a get operation for some of the projects in the solution. Setting verbosity to diagnostic tells me nothing, the event log is empty, what…
Code Silverback
  • 3,204
  • 5
  • 32
  • 39
8
votes
2 answers

Where is TFS 2010 Team Build Revision $(Rev:.r) Stored?

TFS 2010 exposes a "Build Number Format" property, which contains $(BuildNumberDefinitionName) and $(Rev:.r) variables (among other things). Two and a half parts to my question: What are all the available variables that can be used here? Where…
BlueMonkMN
  • 25,079
  • 9
  • 80
  • 146
8
votes
2 answers

Build fails because of xml documentation error

I am trying to build a ASP.NET MVC 2 project that uses Lucene.Net. I make a standard build definition in TFS 2010. When I queue a new build, it fails on this error: CSC: Error generating XML documentation file 'xxx\xxx\Lucene.Net.xml' ('Access is…
Rick Rat
  • 1,732
  • 1
  • 16
  • 32
8
votes
2 answers

No agent could be found with the following capabilities: msbuild, visualstudio, vstest

I have TFS On-Premises, and I have this errror when queueing a new build. No agent could be found with the following capabilities: msbuild, visualstudio, vstest I found this answer: No agent could be found with the following capabilities: msbuild,…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
8
votes
5 answers

TFS Build keep throwing 'Unable to perform the get operation because the file already exists locally' error

I am currently working on an ASP.NET based web application which is version controlled via TFS. A TFS Build server is configured so it is running the build process on every checkin. My problem is that whenever I modify the Web.Config file and check…
garam93
  • 171
  • 1
  • 2
  • 4
8
votes
2 answers

How to pass user variables from TFS 2015 Build definition to power shell script?

I am working on vNext builds TFS 2015. How can we pass a user defined variable from vNext build to power shell script? I am adding powershell script as a step in the build definition.
CKS
  • 497
  • 3
  • 9
  • 16
8
votes
2 answers

Team Foundation Error, Page '3185ed96-1cbd-4381-a439-636973542e50' not found

I'm start using Visual Studio 2015 Enterprise and when I want to manage connections or anything else with Team Foundation Server give this error: Team Foundation Error, Page '3185ed96-1cbd-4381-a439-636973542e50' not found. What should I do?! One…
OMID
  • 2,469
  • 4
  • 16
  • 26
8
votes
2 answers

TFS 2013 Build Controller Not Respecting NuGet Package Restore

We are using VSO with an on-prem build controller (TFS 2013). I've enabled NuGet package restore in the Options menu of Visual Studio (migrated away from the old, deprecated way with the .nuget folder). Inside VS, restoring packages works just…
djm61
  • 464
  • 1
  • 8
  • 23
8
votes
3 answers

TFS Can't Restore NuGet Package

I've got TFS doing some continuous integration builds. Today, it broke for one solution. It seems it can't find AutoMapper. All the other packages can be found just fine. A couple relevant points: None of the packages are in source control, we're…
Pharylon
  • 9,796
  • 3
  • 35
  • 59
8
votes
3 answers

Dependency on the framework assembly "System.Runtime, Version=4.0.10.0," which could not be resolved in the currently targeted framework

TFS 2013 - Build: ASP.Net 4.5.1 website I get this error: warning MSB3268: The primary reference "C:\Builds\2\MyProj\Web1_Main\bin\MyProj1.dll" could not be resolved because it has an indirect dependency on the framework assembly "System.Runtime,…
gbs
  • 7,196
  • 5
  • 43
  • 69
8
votes
1 answer

TFS builds: failed to do "Get" for random files

First of all, we are using TFS 2013 update 3, and the whole system worked well before today's issue. Today, both of our 2 TFS build agents failed to do successful TFS builds anymore. I checked the build log, and found the build process failed at…
Tiger.Xing
  • 491
  • 5
  • 14