How to install Cross-Platform Command-Line Client for TFS on non windows box?

by Xavier Dilip Kumar 20. November 2016 01:40

Explanation:

1. Download the latest Cross-Platform Command-Line Client from the below link

   https://www.microsoft.com/en-us/download/details.aspx?id=47727

2. Unzip the archive file that contains the client.

3. Configure your shell or system path to include the folder to which you unzipped the archive.

vi ~/.bash_profile

export PATH=$PATH:<Path of the Command-Line client unzipped folder>

4. Save and exit        

5. Execute the below command

source ~/.bash_profile

tf eula -accept

6. At command prompt, type tf, and then press the ENTER key.

Optional:

7. Set the TF_AUTO_SAVE_CREDENTIALS environment variable to any value, such as "1" to save TFS credentials in the credentials cache. After you set the variable, you do not need to specify authentication information each time that you run a tf command.

8. execute the below command

vi ~/.bashrc 

9. Add the line

export TF_AUTO_SAVE_CREDENTIALS=1

10. Save and exit

11. Execute the below command

    source ~/.bashrc

tf get -login:<User name>,<Password>

Tags:

TFS | TFS 2012 | TFS 2013 | TFS 2015

TF400018: The local version table for local workspace <NAME> could not be opened. The workspace version table contains as unknown scheme version.

by Xavier Dilip Kumar 28. July 2016 22:36

Exception:

TF400018: The local version table for local workspace <Box Name;User Name> could not be opened. The workspace version table contains as unknown scheme version.

Explanation:

This error may occur when the local workspace is corrupted

Workaround:

Delete or rename the local workspace cache folder at "C:\ProgramData\Microsoft\Team Foundation"

Tags:

TFS | TFS 2012 | TFS 2013

Load Test Could not write to file on controller machine error 112

by Xavier Dilip Kumar 29. April 2016 06:37

Exception: 

Solution:

This error may occur when the Test Controller and Agents runs out disk space. Try to clean up the disk to gain free space or add extra space to the drive. 

Tags: , , ,

TFS | Web Performance & Load Tests | TFS 2012 | TFS 2013 | TFS 2015

How to build Visual Studio 2012 later versions solution in TFS 2012 build environment?

by Xavier Dilip Kumar 22. April 2016 09:07

Explanation:

You can build the Visual Studio 2012 later versions in TFS 2012 build environment by configurating the 'ToolPath' property in the TFS 2012 build xaml file.

Solution:

Open the TFS 2012 build xaml file with the same Visual Studio version (i.e VS 2012) to edit the 'ToolPath' property as below and save the xaml to build.

Visual Studio 2012 ToolPath

On 32-bit machines : C:\Program Files\MSBuild\12.0\bin
On 64-bit machines : C:\Program Files (x86)\MSBuild\12.0\bin

Visual Studio 2015 ToolPath
On 32-bit machines : C:\Program Files\MSBuild\14.0\bin
On 64-bit machines : C:\Program Files (x86)\MSBuild\14.0\bin

 

Tags: , , , ,

Team Build | TFS | TFS 2012 | TFS 2013 | TFS 2015

The updated arguments of a build process template not getting refreshed in the process section of a build definition

by Xavier Dilip Kumar 2. March 2016 18:53

Workaround:

  • Delete the registered build process template in the collection database

          use <Collection database>;
          delete from tbl_BuildProcessTemplate where ProcessTemplateID = 'updated Process Template ID';

  • Create the build definition again

Tags:

TFS | TFS 2012

How to create a report to review changesets that are checked in without work item association?

by Xavier Dilip Kumar 26. February 2016 13:54

Solution:

You may query the TFS cube thru excel to pull the information. Select the fields and configure as shown in the below screenshot.

 

Tags: ,

TFS | TFS 2012 | TFS 2013 | TFS 2015

Meaning of AcceptYours,AcceptTheirs and AcceptMerge during merge conflicts

by Xavier Dilip Kumar 18. February 2016 09:13

Explanation:

AcceptYours - Local version is to be used for merge
AcceptTheirs - Server version is to be used for merge
AcceptMerge - Resolve conflict by doing manual merge

Tags: , , ,

TFS | TFS 2012 | TFS 2013 | TFS 2015

Unable to use or share the workspace created using Visual Studio 2012 or higher versions in Visual Studio 2010.

by Xavier Dilip Kumar 5. February 2016 11:57

Explanation:

Visual Studio 2010 can't use the local workspaces created using Visual Studio 2012 or higher versions. The local workspace feature was introduced starting Visual Studio 2012.

Solution:

Create the workspace using Visual Studio 2010 to share or use the same workspace across Visual Studio 2010 and higher versions.

Tags: , ,

TFS 2010 | TFS 2012 | TFS 2013 | TFS 2015 | Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013 | Visual Studio 2015

MIssing "Find by Status" and "Find by Wildcard" in Source Control Explorer

by Xavier Dilip Kumar 11. January 2016 12:49

Solution:

"Find by Status" and "Find by Wildcard" plug-ins are from TFS power tools. You need to install TFS power tools to gain access to "Find by Status" and "Find by Wildcard" menus.

Tags:

TFS | TFS 2012 | TFS 2013 | TFS 2015 | Visual Studio 2010 | Visual Studio 2012 | Visual Studio 2013 | Visual Studio 2015

"Application detected an unexpected fault" when opening the lab center tab in mtm

by Xavier Dilip Kumar 31. December 2015 09:30

Exception: 

 

Explanation:

This exception may appear when the lab environments exist with no lab systems.

Workaround:

  • Open Microsoft SQL Server Management Studio.
  • Connect to the TFS collection database where your team project exist. 
  • Run the following SQL query to identify the lab environments with no lab systems:

Select le.LabEnvironmentId from LabEnvironment le where le.PartitionId = 1 And NOT EXISTS (Select * From LabSystem ls where ls.LabEnvironmentId = le.LabEnvironmentId AND ls.PartitionId = 1)

  • Note the Id's of the lab environment with no lab systems.
  • Remove all lab environments with no lab systems, by using the following SQL command for each lab environment IDs:

Exec DeleteLabEnvironment @PartitionId = 1, @labEnvironmentId = <Lab Environment ID>, @namespaceGuid = N'9E4894C3-FF9A-4EAC-8A85-CE11CAFDC6F1', @deleteTestMachines = 1, @pendingOperationId = Null

 

Tags:

TFS | TFS 2012

About the author

My name is Xavier Dilip Kumar Jayaraj and I am a Software Configuration Management Engineer with a background in application development, Build & packaging using Install Shield.

Profile in LinkedIn

  

Quotes I Like

"Failure will never overtake me if my determination to succeed is strong enough."  - Dr. APJ. Abdul Kalam

"Always be yourself, express yourself, have faith in yourself, do not go out and look for a successful personality and duplicate it." - Bruce Lee

"Technology is just a tool. In terms of getting the kids working together and motivating them, the teacher is the most important." - Bill Gates

"Innovation distinguishes between a leader and a follower." - Steve Jobs

Disclaimer

The information provided here is based on my expreriences, troubleshooting and online/offline findings. It can be used as is on your own risk without any warranties and I impose no rights.

Month List