vNext Build fails with error message ‘Cannot find solution’ because it does not exist.

Issue Recently we have seen some cases where a vNext build, when queued, would fail with a message like below: · Cannot find path ‘<build agent working folder>\<team project name>\path to solution> because it does not exist. ·        MSBUILD : error MSB1009: Project file does not exist. ·        Unexpected exit code received from msbuild.exe: 1…


Collecting code coverage data as part of automated test.

We were recently working on a case, which was related to collecting code coverage information for a web application, as part of automated testing. We found a specific requirement to collect code coverage data during the course of this, and thought of sharing it here. Setup · We have a web application for which a…


TFS 2015 RTM, Update 1 : “TF14098: Access Denied: User needs Label permission(s) for .”

We’ve recently come across an issue with TFS 2015 RTM, where the CreateLabel() method would through an exception for one particular scenario. This was pointed out by one of our customers. We were able to get a part of his code that’s failing, private static void TFS_CreatelabelTest() {             TfsTeamProjectCollection tpc = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(“http://server:8080/tfs/DefaultCollection”));            …


Changing the TFS URL being used by a release definition from server name to DNS name in Release Management.

Scenario: I have two TFS connections added, for same TFS server, in Release Management. The first one was added before DNS was setup for the TFS server. So it was of the format: http://<tfsservername>:8080/tfs. Release definitions were also created and assigned to this TFS connection. The second connection to the same TFS server was added…


Building ClickOnce apps using build vNext

We had earlier posted a blog that explains how to build ClickOnce applications using XAML build definition http://blogs.msdn.com/b/tfssetup/archive/2015/09/15/build-and-publish-a-clickonce-app-using-team-build-vso.aspx Based on popular demand, we’ll now see how to build ClickOnce Apps using Build vNext, on-prem/VSO First, create a new build definition of Type vNext. We have two steps – Visual Studio Build and Publish Build Artifacts…


Error “4 error(s) occurred while executing upd_WorkItemTrackingToDev14M63.sql script.” during upgrade of collection to TFS 2015

We have had a few users who hit the following error when upgrading from their source version to TFS 2015 RTM Execution of script "WorkItemTrackingToDev14M63.sql" took 0:00:01.337. [Error] 4 error(s) occurred while executing upd_WorkItemTrackingToDev14M63.sql script. Failed batch starts on line: 1. Error: 50000, Level: 16, State: 1, Batch Line: 293, Script Line: 293 Message: %error="600000";%:(null):…


Tokenization with Release Management

This article provides a demo of processing tokens as part of the build and release, using Release Management. Why use tokens? Tokenization comes in handy when you want to replace a value in your web or app.config file, automatically, based on the stage to which the release is happening. For example, my application uses an…