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
16
votes
4 answers

How to build a VS2010 MakeFile project (vcxproj) with TFS Build (No VS 2010)

I have a project that was building fine in VS 2008, and then we installed and started using TFS Build, and then we upgraded to TFS 2010. Everything was still fine and building correctly (after I implemented our new build process that made…
BlueMonkMN
  • 25,079
  • 9
  • 80
  • 146
16
votes
3 answers

Is it able to ignore/disable the first step Get source in vNext Build?

Here is our situation-- sometimes we need to run a vNext build without needing to pull any source code from TFS server. But we don't want to change the workspace mappings. Is there a related setting simply ignore or disable the get source step in…
Tomhans.J
  • 440
  • 1
  • 4
  • 15
16
votes
4 answers

Download Build binaries from Visual Studio Team Services

I have a WPF project in Visual Studio Team Services. Project is successfully built, but where I can download the resulting files? I see only "Download Logs" option, but not an actual Build of my project. 2016-02-19T11:01:16.1495550Z Checking if…
Michal
  • 803
  • 2
  • 9
  • 26
16
votes
3 answers

Build and Deploy a Web Application with TFS 2015 Build

We have just installed TFS 2015 (Update 1) on-premise and are trying to create a Continuous Integration/Build system using the new TFS Build system. The build works fine, and gives me a green light, but when I look at the default build it has only…
Erik Funkenbusch
  • 92,674
  • 28
  • 195
  • 291
16
votes
1 answer

When does MSBuild set the $(ProjectName) property?

I'm fairly new to MSBuild, and I've done some customization on a WPF project file that I'm building both in Visual Studio 2010 and TFS 2010. I've customized the output path as follows:
bwerks
  • 8,651
  • 14
  • 68
  • 100
16
votes
3 answers

How to remove a specific ChangeSet in TFS 2010?

How to remove a specific changeset in tfs2010? I have changeset version numbers with 545, 544, 543,542. Now, I am looking to delete the particular changeset 543 only in tfs?
Cherry
  • 675
  • 3
  • 10
  • 28
16
votes
4 answers

How can one determine if a csproj is being run on a TFS build agent?

We use TFS 2010. There are a couple of projects with deployment steps which must know whether they are running on a dev machine or on the TFS build agent. Right now they check whether the build is from within Visual Studio assuming that only devs…
mark
  • 59,016
  • 79
  • 296
  • 580
16
votes
4 answers

How to chain TFS builds?

I have a scenario where I want to call one TFS build from another, the first one does the build and the second one does staging. This will allow me do multiple custom staging for the same solution. I know, I can pull this off with an exec task in…
user22242
  • 432
  • 3
  • 13
15
votes
2 answers

Checking a file out (TFS) for a pre-build action

I've added a pre-build action for an ASP.NET web control (server control) project, that runs jsmin.exe on a set of Javascript files. These output files are part of the source control tree and are embedded into the assembly. The problem is when the…
Chris S
  • 64,770
  • 52
  • 221
  • 239
15
votes
3 answers

How to do an Automated build in TFS 2010 by a label

I have my automated builds working but I want to be able to go back to a specifc labeled version and build from that source. The build definition under "Process" has the item "Get Version" but this is for a specific changeset which seems fairly…
John L
  • 161
  • 1
  • 3
15
votes
2 answers

Using NuGet for Internal & External Dependencies in TFS

I'm currently looking at NuGet to solve my dependency problems in TFS and what I wanted to do is to host my own NuGet server that would take care of internal dependencies. I also want to use NuGet to handle my 3rd party dependencies as well. I'm…
Cole W
  • 15,123
  • 6
  • 51
  • 85
15
votes
2 answers

dotnet test not creating test results folder

As part of our ASP.NET Core 2.0 build process I have added a dotnet test command which I have added as a Windows batch file. Here is my command. dotnet test "MyProject.csproj" --no-restore --results-directory "MyProject\TestResults" --verbosity…
DomBurf
  • 2,452
  • 5
  • 36
  • 71
15
votes
2 answers

How can I prevent TFS from failing a PowerShell step when an error is written to the error stream?

I have a PowerShell step in a TFS build that writes an error to the error stream and thus fails the build. I'd like the step to ignore the error and continue on as succeeded. Process completed with exit code 0 and had 1 error(s) written to the…
John Mills
  • 10,020
  • 12
  • 74
  • 121
15
votes
3 answers

TFS 2015 Can build variables access other build variables?

When I define a custom variable in the new TFS 2015 team build as follows: Name: SomeOutput Value: $(System.DefaultWorkingDirectory)\Some ...it doesn't seems to expand $(System.DefaultWorkingDirectory). Is there a way around this? EDIT: At least it…
Suchiman
  • 1,636
  • 2
  • 20
  • 30
15
votes
1 answer

Maven works in cmd but not powershell

I want to build with maven my java projects on TFS Build Server. TFS Build Definition use invokeprocess in workflow. invokeprocess able to run powershell script and command batch file. Maven build successed with "mvn assembly:assembly -P prod"…
Goksel
  • 227
  • 1
  • 3
  • 10