build-agent

What TFS 2017 build task applies web.config transforms during TFS builds?

ぃ、小莉子 提交于 2019-12-02 09:31:46
问题 Some original info was changed to make the post more focused on the real issue after it was found. These are some of the details of the current environment. I listed these only because questions were raised in other posts to determine what was and was not working in the current environment: Upon check-in TFS 2017 successfully builds a web project on the build agent. A VS 2017 publish profile can manually transform the project properly The build machine artifact location includes both the

What TFS 2017 build task applies web.config transforms during TFS builds?

孤街浪徒 提交于 2019-12-02 04:06:12
Some original info was changed to make the post more focused on the real issue after it was found. These are some of the details of the current environment. I listed these only because questions were raised in other posts to determine what was and was not working in the current environment: Upon check-in TFS 2017 successfully builds a web project on the build agent. A VS 2017 publish profile can manually transform the project properly The build machine artifact location includes both the transform and profile files The artifact location is shown below: I have researched this in depth on

TFS 2015 API remove agent from pool with PowerShell

隐身守侯 提交于 2019-12-02 02:22:13
I'm working on removing an agent from a pool temporarily, install new software on the buildserver the agent is on, test that it works, and then add the agent to the pool again. I would like to do that programmatically, either with PowerShell or if that isn't a possibility, then do it with C#. The problem is that I can't find any documentation that can assist me on doing this, either through the TFS REST API or through the tools that come with Visual Studio. So I'm specifically asking: How do I remove a named agent from a build pool and how do I add a named agent back into the build pool? I

TFS 2015 API remove agent from pool with PowerShell

孤者浪人 提交于 2019-12-02 02:01:20
问题 I'm working on removing an agent from a pool temporarily, install new software on the buildserver the agent is on, test that it works, and then add the agent to the pool again. I would like to do that programmatically, either with PowerShell or if that isn't a possibility, then do it with C#. The problem is that I can't find any documentation that can assist me on doing this, either through the TFS REST API or through the tools that come with Visual Studio. So I'm specifically asking: How do

Are TFS Build Agent User Capabilities' Values Obtainable Within Build Steps?

怎甘沉沦 提交于 2019-12-01 07:38:38
I'm trying to write a build step within TFS that relies on knowing where the Build agent has nuget.exe stored (the standard nuget-install step mucks around with the order of arguments in a way that breaks build execution, so I want to run the exe myself using one of the batch/shell/ps steps). It would seem that setting up a capability on the Build Agent with that path would make sense, but I cannot seem to reference the value in any of my build steps, and I cannot find anything helpful on MSDN. I'm expecting it to be something like $(Env.MyUserCapability) , but it never resolves to the value.

What do I need to install a Visual Studio 2010 (sln)-compatible Build Agent in TeamCity?

陌路散爱 提交于 2019-12-01 05:49:43
I seem to be unable to install a build agent on our TeamCity 5.1.2 build server that is compatible with a VS2010 (sln) build configuration. Under "Build Runners", the following runners are listed: Ant: Runner for Ant build.xml files Duplicates finder (.NET): C# and VB duplicate code finder Command Line: Simple command execution And under "Compatible configurations", the project I've configured to build with the Visual Studio 2010 (sln) build runner is listed under "Incompatible configurations". To install the build agent, I'm simply running the .msi installation package, but it seems the