FAQ Database Discussion Community


I can't create new build definitions on TFS Online

tfs,tfsbuild
I use TFS online to store my source codes, and I want to use the integrated build service. I have created several Build définitions last week, and they work perfectly (I can start builds, modify them). But since this morning, I can't create new Build définitions. Visual Studio show me...

TFS Build 2013 - Cannot resolve primary reference

visual-studio-2013,tfsbuild,tfs2013
I'm evaluating TFS Build 2013 for use in a corporate environment. TFs itself has been running fine for ages, and today I setup the Build components. No problem so far. I grabbed a fairly simple project from source and created a manually triggered build definition, using the standard defaults. I...

AzureContinuousDeployment.11.xaml vs TfvcContinuousDeploymentTemplate.12.xaml

azure,msbuild,tfsbuild,azure-web-roles,visual-studio-online
I can't seem to find any information regarding the difference between these two build definition templates: AzureContinuousDeployment.11.xaml TfvcContinuousDeploymentTemplate.12.xaml My guess is that AzureContinuousDeployment has been replaced by TfvcContinuousDeploymentTemplate. Does this mean I should not use AzureContinuousDeployment? I want to use it because here I am able to set the storage...

Where has BuildStep gone?

visual-studio-2013,msbuild,tfsbuild,tfs2013
I'm reusing 2010 tfs build scripts in TFSBuild 2013. I've had to remove my BuildSteps because the task is no longer valid! What is the recommended alternative to logging progress to the TFSBuild 2013 "Activity Log" ?...

Merge Development branch into Staging branch on Build - Team Foundation Server

tfs,tfsbuild
Is it possible to merge the development branch into the staging branch, when the development branch successfully builds?

TFS Build Template Copy Directory and Exclusion of files

tfs,tfsbuild
I have TFS Build Default Template and I added to it, between "Run on Agent' and "Check In Gated Changes for CheckInShelveset Builds", Copy Directory with Source BuildDetail.DropLocation and destination a shared directory on a server. My problem comes that the Copy Directory is not executed or is executed, but...

TFS Build Activities associated code

tfs,tfs2012,tfsbuild,tfs2013
LabDefaultTemplate-> ExecuteRemoteTestRun2 doesn't take in account the Order field of the test in the MTM Referring to this post, what is the way to view the associated Execute method for any CodeActivity. As I could see the ExecuteRemoteTestRun2 is a built in activity and how did the author get to...

Nunit tests are not found on tfs 2013 although NUnit test adapter package is used

unit-testing,tfs,nunit,tfsbuild,tfs2013
I have a simple application and Nunit unit test project with 2 tests to test that app. I've managed to have unit tests discovered and run locally in Visual studio 2013 but when trying to build application and run these unit tests on TFS 2013 test runner does not find...

TFS Lab Management Default Template Build Number

tfs,tfsbuild,tfs2013,lab-management
I am in the process of trying to understand TFS Lab Management but unfortunately do not have an environment for trying it out. My understanding is that when using Lab Management you use two build templates. A normal build template associated with your solution and a further 'master' template for...

InstallShield broke TFS Build

visual-studio-2013,tfs,tfsbuild,visual-studio-online
I am getting this error when using VisualStudio.com to build my solution: C:\a\src\...\Setup\Setup.isproj (30): The imported project "C:\Program Files (x86)\MSBuild\InstallShield\2013Limited\InstallShield.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. One of the projects in my solution is an InstallShield...

Workflow won't compile

xaml,tfsbuild
I'm getting the following error when trying to execute my custom build definition (containing only 1 custom CodeActivity): Exception Message: Expression Activity type 'CSharpReference`1' requires compilation in order to run. Please ensure that the workflow has been compiled. (type NotSupportedException) I've tried multiple suggested answers to this error, but none...

How do I resolve the root and relative paths of TFS folders on the server?

c#,tfs,tfsbuild,workflow-activity
I have created a CodeActivity for use in (custom) build definitions. This activity needs to copy files located on the server to/from places like the 'source directory', 'custom folders' to the 'drop directory' (etc.) before executing its primary purpose. Some of the variables I have are valid paths, but others...

How can I get value “RequestedBy” in tfs 2013 build?

tfs,tfsbuild,tfs2013
In tfs 2010 build, it's easy to get that vale using "BuildDetail.RequestedBy". what's the equivalent in TFS 2013? I couldn't find "BuildDetail" even.

msbuild error building sql clr dll in TFS

tfs,msbuild,tfsbuild,tfs2013,sqlclr
We have SQL CLR dll that we developed quite a long time ago that we have been using. Unfortunately it wasn't ever in our normal daily builds.We are going to be upgrade our sql server from 2008 R2 to 2014. So i opened the project and upgrade it to a...

How to get the tfs build folder name, generated inside dropfolder while running the TFS build

tfsbuild,powershell-v3.0,tfs2013
Created the TFS build definition and scheduled to run automatically. Also copying the build output to a drop folder at server location(\server\TFSBuildOutput). When build runs, a separate folder is created inside drop folder(\server\TFSBuildOutput) in the format - $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r) Now i want to get the name of this newly generated folder...

TFS build error: Could not find SDK “Bing.Maps.Xaml, Version=1.313.0825.0”

windows-8,tfs,windows-8.1,bing-maps,tfsbuild
I want to build my windows 8 application on tfs but I have a problem with Bing maps sdk. There are no Bing maps dll that I can easily add it to references. How can I solve the problem? I got this error in tfs build log file. "C:\Builds\1\...sln" (default...

TFS 2013 Build Agent target .NET version

.net,tfs,tfsbuild,tfs2013
I installed a TFS 2013 and configured the build service, but I am trying to build an old application that was written on .NET 2.0. Each time I run the build I receive this error: <link-to-file> (24): Reference required to assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' containing the base class 'System.Web.UI.Control'....

TFS Build Services, environment variables and multiple build agents

tfs,msbuild,tfsbuild,tfs2013
I have a MsBuild process that start as part of build using TFS Build Services 2013. I need to pass a few parameters to this process (for example the build number). I've done this previously by modifying the build template and added these parameters to the list of parameters sent...

Is it possible to write build message from powershellscript?

powershell,msbuild,tfsbuild
If i have a build template for TFS, and in this template in post-build script row i make a call to a powershell script, are there any way to transfer output from this PS script to build log?

Exclude/Remove .csproj through MSBuild argument

visual-studio-2013,msbuild,tfsbuild
I need to exclude abc.Test.csproj from the .sln file during team build compilation. I have tried using /ignoreprojectextensions=.Test.csproj, but doesnt work for my purpose. Please help me in accomplishing this....

How to modify TFS build automation workflow without .Net Complier, need to use Team Developer's Language complier

tfs,msbuild,tfs2010,tfsbuild
I am trying build automation for a project developed using legacy language called Team Developer 6. where each file needs to be compiled as an exe. also need to do some filter activity before building exes. there are 300 exes. this process I could do in simple .Net utility which...

Programmatically access tfs build output

vb.net,powershell,tfs,tfsbuild,tfs2013
I'm trying to write a powershell script to allow a user to specify a tfs build id (or alternately a changeset id) and download the build output to the current directory. I have the build configured to copy the output to the server, which means only the most recent build...

TFS with SonarQube, no product projects, only test projects

sonarqube,tfsbuild,tfs2013
I have installed SonarQube on my local development machine by following installation guide: SonarQube Installation Guide for Existing TFS Environment.pdf. The build is succesfull. The project is added to the dashboard. But there was only testcoverage data. I have 4 projects in my solution, 2 of them are unittest projects....

Newly created build process parameters not showing up

tfs,tfsbuild,tfs2013
When I add a new parameter in the Process Parameter Metadata Editor, checkin my changes, and go back to edit the definition or queue a build from it, the parameter is not showing. Here is the parameter in the editor: Other custom parameters I added in the past show up...

How can I change the “connect to team server as” user in TFS 2013 server?

tfs,tfsbuild,visual-studio-online,tfs2013,team-build
In Team Foundation Server 2013 I cannot seem to change "connect to team server as" user. TFS server is pointing to our Visual Studio Online https://ourtfs.visualstudio.com/defaultcollection and the the account that the TFS server is using to checkout code is also "Account Service (ourtfs)" even though there is no such...

Notify develper that the file got overwritten

visual-studio,tfs,tfsbuild
We are using Microsoft Team foundation server for version control where multiple developers are working on a branch and check in and check out the code. How can a developer A be notified via email or SMS that his code got overwritten during the checkin by developer B. Developer A...

The item $//Drops may not be cloaked because it does not have a mapped parent. (type WorkingFolderException)

continuous-integration,tfsbuild,visual-studio-online
I am trying to set up Continuous Integration on Visual Studio Online, but I am getting a strange error: Exception Message: The item $/<mycollection>/Drops may not be cloaked because it does not have a mapped parent. (type WorkingFolderException) My configuration of the build item is this: The 'Build defaults' step...

Having trouble enabling the NuGet version of XUnit.NET on Team Build 2013

.net,tfsbuild,tfs2013,xunit.net,nuget-package-restore
I would like to use Xunit as a test framework. I've created test project, added two nuget packages (xunit and xunit.runner.visualstudio) and everything works great. Visual Studio discover tests. But how can I configure TFS 2013 build to discover that tests? What's the proper way to do that? I found...

Prevent TFS Build Definition Source Settings from triggering a build

tfs,msbuild,tfsbuild,build-server,build-definition
When I create a build definition I have setup some source settings, example below: Problem is I want it to trigger a build when someone checks into the Builds or Install folders, but the Includes folder is just some libraries and other items it needs. I don't want it to...

TFS 2012 - Build Agent Folders Not Being Removed

visual-studio-2012,tfs,tfsbuild
We have a TFS 2012 Build Agent running automated builds in DEV environment using ReleaseDefaultTemplate.11.1.xaml Build Definition from Release Management for Visual Studio 2013. Builds succeed, however the build agent workspace files/folders remain after files/folders are dropped in a separate location. Build agent workspace is set to: $(SystemDrive)\Builds\$(BuildAgentId)\$(BuildDefinitionPath) We want...

TFSBuild: Disabling Code-Analysis for one project

visual-studio-2012,tfs,tfs2012,tfsbuild,code-analysis
We have a large VS2012 solution (~250 projects) that is 90% C#. 2 of the 3 C++ projects use the 'v110' Platform Toolset. The third has to use the 'v110_xp' toolset for compatibility with a third party library. Our nightly TFS (2012) build is configured with 'Perform Code Analysis' set...

Could not resolve this reference: NuGet on CI server

.net,tfs,nuget,tfsbuild,nuget-package-restore
I'm running a CI build on a TFS build controller, connected to VS Online. I've got a 'Could not resolve this reference' problem for a NuGet package and I've observed behavior that I haven't seen before: Locally the pacakage is downloaded to packages\FluentValidation.5.5.0 whereas on the server, it's downloaded to...

Whats the real benefits of using the TFS Build 2013?

powershell,tfs,msbuild,tfsbuild,tfs2013
http://www.alexandervanwynsberghe.be/whats-new-in-tfs-2013-build/ I've only recently learned of the new TFS Build 2013 workflow. XAML and PowerShell, neither of which I want to use. We have a couple of thousand lines of msbuild script which does everything imaginable from change the version number to create help files. I've struggled for the past...

cannot modify .csproj files using build auto with tfs 13

build,workflow,tfsbuild,tfs2013,workflow-activity
I created a workflow activity named EditCsproj which is a C# class that I added to my build template. I put it right after the Initialize Workspace step. This workflow has to get all .csproj files in the directory path that I provide as a parameter and it has to...

TFS Build single folder not being copied

tfs,tfsbuild
when building my app on a TFS server, a single folder (with 2 .xml files) aren't copied to the output folder, but all others are. These files are: a normal xml file and it's tranform version, This is on the corporate TFS build server and it works for all other...

Edit TFS team build definition using C#

c#,tfsbuild,windows-applications,team-build
I am a beginner to DevOps and I am working on building a windows desktop application using c# .Net which can edit the parameters of a TFS team build definition from a list of build definitions. The way I want the UI to be is Select the team project ==>...

LibGit2Sharp versioning error MSBuild

tfs,msbuild,tfsbuild,libgit2sharp
I'm getting the following error: Error 17 System.IO.FileLoadException: Could not load file or assembly 'LibGit2Sharp, Version=0.14.30212.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) File name: 'LibGit2Sharp, Version=0.14.30212.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.IO.FileLoadException: A strongly-named assembly is required. (Exception from HRESULT: 0x80131044) I...

Powershell Quoted variables parameters in a job

powershell,tfs,tfsbuild,start-job
$buildDef = "Service.xxxx" $buildDefFull="MyProject/$buildDef" Start-Job -Name 'Service1' -ScriptBlock { tfsbuild start /collection:"http://yyyy:8080/tfs/DefaultCollection" /builddefinition:"$buildDefFull" } i get this error: Option builddefinition requires a value. + CategoryInfo : NotSpecified: (Option builddefinition requires a value.:String) [], RemoteException + FullyQualifiedErrorId : NativeCommandError + PSComputerName : localhost i can't seem to get tfsbuild to accept...

How can I configure a TFS 2013 Build Definition to Overwrite when it does its Get?

tfs,tfsbuild,tfs2013,team-build
I've written a TFS 2013 Build Definition using TfvcTemplate.12.xaml, set it to trigger on each check-in and to not clean the workspace. When the build runs it modifies certain source files under source control when the build runs. If I then check-in changes for a file that was modified on...

TFS Online build server post build scripts not available

tfs,tfsbuild,visual-studio-online
According to this link, there is an option to add powershell scripts to the build via a post build script path property. To invoke our script for front-end build tasks (clientcompile.bat), we need to configure the build process. Open the ‘Process’ tab and expand section ‘5. Advanced’ inside the Build...

Detect TFS Build vs. Visual Studio build

visual-studio-2013,tfs,tfsbuild,tfs2013
Is it possible to detect whether or not the current build is executing from Visual Studio rather than an automated build with TFS without creating a separate solution configuration? I'm wondering if I can exclude certain Post Build Events if the build is running on TFS 2013, but if possible...

TFS Build Server not running NUnit TearDown

tfs,msbuild,nunit,build-process,tfsbuild
I have a global teardown in my unit tests as below: [SetUpFixture] public partial class TestRunTeardown { [TearDown] public static void Teardown() { Trace.WriteLine("getting to tear down"); } } The trace outputs in my local window pointing to the same database, but when I run on the TFS build server...

What builds are using a specific build agent

tfs,tfsbuild
My company has a bunch of different builds and half a dozen different build agents, and I need to update some software for one of the builds. I don't want to break any other builds that are using said agent. I would like to get a list of all builds...

TFS 2013 build error with Exception Message: Found (type VssServiceResponseException)

tfsbuild
I am getting following error when queuing new build. i have not found much document on this 'found' exception. can someone please help me resolving this issue TF215097: An error occurred while initializing a build for build definition \Adhoc build: Exception Message: One or more errors occurred. (type AggregateException) Exception...

Team Foundation Server 2013 trigger build for pull request

git,visual-studio-2013,tfsbuild,tfs2013,pull-request
How to configure TFS to run a build (which is a CI build) for every pull request (when is created and updated). The scenario that I would like to have is that when a developer completes its work and pushes a branch to GIT (on TFS) it would be nice...

Intermittent BadImageFormatException building “plugin” DLL on PC or via TFS build

c#,msbuild,tfsbuild,msbuildcommunitytasks,badimageformatexception
I have an application where several of the assemblies are built separately from the main application. At run-time they live in a folder outside the main BIN folder and loaded by the main application using Assembly.LoadFrom. In the VS project for these "plugin" assemblies, there are references to physical assemblies...

Cannot dynamically set workspace mappings for custom build

tfsbuild,tfs2013
When I run the following a new build is queued but does not have my new mappings. TfsTeamProjectCollection server = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(collectionUri)); IBuildServer buildServer = server.GetService<IBuildServer>(); WorkItemStore workItemStore = server.GetService<WorkItemStore>(); Project teamProject = workItemStore.Projects[projectArea]; IBuildDefinition buildDef = buildServer.GetBuildDefinition(teamProject.Name, buildDefininition); IBuildRequest requestedBuild =...

TFS Team Build Finding generated MSI files in the sources directory

tfs,tfsbuild
I'm generating on each build MSI files which are located in my build directory in the build server those MSI files I would like to copy to my drop folder. So i'm using a FindMatchingFiles activity in my XAML and put it inside a for each loop to run over...