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
30
votes
3 answers

TFS 2012 and web.config transforms

I am trying to have my TFS Build create the web.config transform associated with the configuration I selected for my build. When I run the build I check the web.config file no transforms have been applied. When I a publish from VS2012 the transform…
Nathan Greenway
  • 348
  • 1
  • 3
  • 8
28
votes
1 answer

Is there a way to speed up the builds in visual studio team services (and TFS)

Our team has set up continuous integration using visual studio online. We have tried cranking up our subscription to advanced with a paid build limit that we are nowhere near reaching. However, build times are exceptionally slow. The builds will sit…
RBZ
  • 2,034
  • 17
  • 34
27
votes
6 answers

MSBuild & TeamBuild - BuildInParallel failing because of MSB3021 file permission violation

I maintain the build of a fairly large piece of software, consisting of roughly 350 csharp projects. Our build time for a debug built clocks in at about 17 minutes. I have been looking at ways to improve build time, and the BuildInParallel property…
Erling Paulsen
  • 593
  • 2
  • 5
  • 11
26
votes
1 answer

How to Increase build vnext build agent execution time?

I am running a large suite of tests on my build server and it takes longer than an hour to get through them all. It is currently failing after an hour stating this: The job running on agent xAgentNamex has exceeded the maximum execution time of…
4imble
  • 13,979
  • 15
  • 70
  • 125
26
votes
15 answers

Predefined type 'System.Void' is not defined or imported during Visual Studio Online build of ASP.NET 5

I get this error when I try to build the project in Visual Studio Online: …\Frontend\Startup.cs(65,49): Error CS0518: Predefined type 'System.Void' is not defined or imported …\Frontend\Startup.cs(65,49): DNXCore,Version=v5.0 error CS0518:…
25
votes
3 answers

Unable to determine the workspace using TF.exe

I have this script (bat file) tf workspaces /s:http://project02:8080 tf workspace /s:http://project02:8080 Team.descomp;MyDomain\Myuser tf workfold /workspace:Team.descomp tf get $/Team/Main/Projects /recursive /force /noprompt I get this…
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
25
votes
8 answers

MSbuild Error: The builds tools for v140 (Platform Toolset = 'v140') cannot be found

I have a solution which is consists of a large number of projects (C++ and C#). I upgraded the solution to VS2015, so the toolset version for most of them are now set to V140, but a small number of projects need to remain in V110 (third party…
Arash
  • 271
  • 1
  • 4
  • 5
25
votes
9 answers

Team Build: The path 'Path' is already mapped in workspace 'workspace' error even after deleting all workspaces on build agent

I have this problem when I queue a build. The build dies with the error The path C:\[Path]\Sources is already mapped in workspace [Server Name]. the same as this question. but I've removed all the workspaces on the build agent by running this…
Glenn Slaven
  • 33,720
  • 26
  • 113
  • 165
25
votes
4 answers

Build error in tfsbuild with database project

I have setup my .NET project in TFS Build. It builds fine locally, but I am getting this build error on the server: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets"…
amateur
  • 43,371
  • 65
  • 192
  • 320
23
votes
6 answers

Assert.Inconclusive and IgnoreAttribute

What is the right way to use Assert.Inconclusive and IgnoreAttribute in MS Unit test framework? We are using Assert.Inconclusive mainly for tests which are: Not implemented yet Somehow broken or incomplete = requires futher attention When test body…
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
23
votes
8 answers

How to get TFS2015 Build (Build.vnext) and NuGet package restore to use custom package sources

I'm trying to get our TFS2015 Build (TFSBuild vnext) going along with VS Team Services. Thus far most blogs and documentation has been helpful, except for when trying to build a project that uses custom package sources for NuGet automatic package…
Jaans
  • 4,598
  • 4
  • 39
  • 49
22
votes
9 answers

How can I get TFS 2010 to build each project to a separate directory?

In our project, we'd like to have our TFS build put each project into its own folder under the drop folder, instead of dropping all of the files into one flat structure. To illustrate, we'd like to see something like this: DropFolder/ Foo/ …
Jonathan Schuster
  • 2,350
  • 4
  • 24
  • 30
22
votes
3 answers

How to integrate NUnit tests into a TFS 2010 build

What is the best way to integrate nunit tests into TFS 2010? Is it via generic tests or is there a better approach to running them? Ideally I'd like to have the granularity of one generic test per test assembly and have a way to surface the results…
Kevin McMahon
  • 2,643
  • 25
  • 31
21
votes
7 answers

How can I copy a TFS 2010 Build Definition?

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…
devlife
  • 15,275
  • 27
  • 77
  • 131
21
votes
4 answers

Build VS2013 on a TFS Build Server With Only VS2013

I'm setting up a new build server to support a migration of our development team from VS2010 to VS2013. We are not migrating our TFS server just yet so the new build server has been set up as a VS2010 Build Controller with 2 Agents. I have also…
Piers Lawson
  • 747
  • 2
  • 5
  • 18