Questions tagged [build-definition]
217 questions
36
votes
2 answers
What is `build agent folder` $(SourceDir) of a build definition in TFS Build 2012?
When creating a build definition for a TFS build, there is a section called Source Settings as below snapshoot where we have to define 1) Source Control Folder and 2) Build Agent Folder.
As I understand, the source control folder is where to get the…

Nam G VU
- 33,193
- 69
- 233
- 372
19
votes
2 answers
TFS API - How to query builds independent of which build definition they belong to
It seems no overloads of IBuildServer.QueryBuilds(...) allows me to do that.
Here's my code:
TfsTeamProjectCollection tfs = context.GetValue(TeamProject);
IBuildServer buildServer =…

Conrad Clark
- 4,533
- 5
- 45
- 70
15
votes
1 answer
Run Powershell or Command Prompt as administrator during Visual Studio Team Services build
I am working on a project where we are delay signing the assemblies. I need to use the strong name tool a couple times during the build, to turn off strong name verification, and then to fully sign the assemblies before they are packaged. I…

Edward Rixon
- 1,199
- 1
- 17
- 31
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
11
votes
6 answers
How to Move TFS 2010 Build Definition between Projects?
I have some TFS 2010 build definitions that were created under ProjectX. Now the source code has moved to a folder subordinate to ProjectY. How can I move the build definitions to ProjectY so they display under the Builds node of the Team Explorer…

marc
- 3,248
- 4
- 28
- 33
11
votes
5 answers
Disable Npm warnings as Errors: build definition tfs
I am getting npm warnings as errors during build using build definition.
I then added following property in MSBuild Arguments in Build Definition:
/p:TreatWarningsAsErrors=False
but it is not working yet.
I also cross-checked by right-clicking…

CodeZila
- 919
- 2
- 14
- 31
11
votes
1 answer
Adding private Nuget package feeds to Visual Studio Online
I have a private NuGet package feed running, which I use to share certain functions and extensions between my projects. It works great in Visual Studio, but lately I've started setting up a continuous integration build for one of my projects on…

anaximander
- 7,083
- 3
- 44
- 62
10
votes
1 answer
npm ERR! 404 Not Found: har-validator@5.1.2
After upgrading to angular7 the build in azure fails on the "npm install" step.
Locally everything works fine.
I have tried:
Setting the clean option in the build definition to true and to "all directories".
Forcing an npm update "npm@latest -g"…

Casper Nybroe
- 1,179
- 3
- 23
- 47
9
votes
5 answers
TFS2010 Build Definition to Deploy to multiple servers?
I've been looking into TFS2010 new build and deployment features with MSDeploy. So far everything is going well (although its been hard to find information about specific scenarios).
Can I modify my Build Definition to specify 2 or more servers to…

Arkiliknam
- 1,805
- 1
- 19
- 35
6
votes
2 answers
TFS Build error - "The specified path, file name, or both are too long..."
I'm writing the Custom Activities of build process template. I got the below issue when build the activity.
>XamlBuildTask : error XC1043: Extension 'Microsoft.Activities.Build.BeforeInitializeComponentExtension' threw an exception of type…

Hoang Nguyen
- 1,348
- 1
- 10
- 17
5
votes
2 answers
How to define preprocessor definition for each configuration in CLion?
I have several build profiles in CLion -> Settings -> Build, Execution, Deployment -> CMake. How can I set the preprocessor definitions for each profile, regardless of which compiler I use?

volodya7292
- 454
- 8
- 20
4
votes
1 answer
How to create Build Definitions through VSTS REST API
Situation:
I'm currently working on automating CI/CD configurations through bitbucket -> vsts -> azure.
My ideal result is to be able to copy paste (or manually enter) my configuration values into their respective console programs and have the…

Anh-Duc
- 154
- 1
- 12
4
votes
2 answers
Visual Studio Team Services - Build fails, definition wrong?
I've been working on a project for some time now and now I want to use Visual Studio Team Services for it. Locally, the building in Visual Studio doesn't give an error and the application works as intended.
I've checked in this working code to VSTS…

Kailayla
- 323
- 5
- 15
4
votes
2 answers
How to get the updated argument(s) of a build process template refreshed in 'Process' section of a build definition?
For a build process template, we can add/remove/edit the argument list of it and use it as variables within the build/work-flow steps. I reading the nice guide here
I'm cloning the template DefaultTemplate.11.1.xaml to…

Nam G VU
- 33,193
- 69
- 233
- 372
4
votes
2 answers
How to quickly delete all build definition?
In Build page in Team Explorer, we have a list of build definition and when select them all, the delete command is disabled.
Selecting only one enable us to delete it.
Is there other places where we can quickly clear all the build definition?

Nam G VU
- 33,193
- 69
- 233
- 372