<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>TFS</title><link>http://www.ralbu.com:80/tags/tfs</link><description>TFS</description><item><title>Visual Studio Online - output colouring by tag</title><link>http://www.ralbu.com:80/visual-studio-online-output-colouring-by-tag</link><description>&lt;p&gt;I started being more involved in continuous integration and deployment using Visual Studio Online which is &amp;lsquo;the new&amp;lsquo; TFS hosted in Azure.&lt;/p&gt;
&lt;p&gt;I've discovered an interesting and useful feature when using it PowerShell. When you use Write-Host if you add [Debug], [Warning] and [Error] in your output string then you get a nice colour in the Console and Logs pages of the build result.&lt;/p&gt;
&lt;p&gt;Have a look at the below images.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ralbu.com/Media/Default/Windows-Live-Writer/bb1a0ef004f8_5FF5/vso%20build%201_4.png"&gt;&lt;img title="vso build 1" style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" alt="vso build 1" src="http://www.ralbu.com/Media/Default/Windows-Live-Writer/bb1a0ef004f8_5FF5/vso%20build%201_thumb_1.png" height="118" border="0" width="640" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ralbu.com/Media/Default/Windows-Live-Writer/bb1a0ef004f8_5FF5/vso%20build%202_4.png"&gt;&lt;img title="vso build 2" style="background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;" alt="vso build 2" src="http://www.ralbu.com/Media/Default/Windows-Live-Writer/bb1a0ef004f8_5FF5/vso%20build%202_thumb_1.png" height="150" border="0" width="640" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In this example the following output was used:&lt;/p&gt;
&lt;p&gt;Write-Host "[Debug] Debug value"&lt;br /&gt;Write-Host "[Warning] Warning value"&lt;br /&gt;Write-Host "[Error] Error value"&lt;/p&gt;
&lt;p&gt;As you can see the Console doesn't shows the value in square brackets.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;This worked for me in both Azure hosted and local hosted agent. I guess it should be the same on the TFS hosted on premises.&lt;/p&gt;</description><pubDate>Wed, 23 Sep 2015 06:09:32 GMT</pubDate><guid isPermaLink="true">http://www.ralbu.com:80/visual-studio-online-output-colouring-by-tag</guid></item><item><title>Unbind TFS</title><link>http://www.ralbu.com:80/post/2013/03/20/Unbind-TFS</link><description>&lt;p&gt;This a follow up post to the previous one &lt;a href="http://ralbu.com/post/2013/02/16/Migration-from-TFS-to-Git.aspx"&gt;Migration from TFS to Git&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you migrated your code from TFS to Git you'll soon realise that you don't need all the TFS bindings. After spending some time trying to find a tool which does this I've wrote mine. The tools I found didn't do what I need. They remove the bindings ok but in case with git you get the '.git' folder and the tools remove bindings in this folder as well.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I put the source code on GitHub so you can download it and use at your own risk. It edits the .sln, .csproj and deletes .vsssscc and vspscc files. Find the details on the GitHub web site: &lt;a href="https://github.com/ralbu/UnbindTFS"&gt;Unbind TFS&lt;/a&gt;&lt;/p&gt;</description><pubDate>Wed, 20 Mar 2013 15:35:00 GMT</pubDate><guid isPermaLink="true">http://www.ralbu.com:80/post/2013/03/20/Unbind-TFS</guid></item><item><title>Migration from TFS to Git</title><link>http://www.ralbu.com:80/post/2013/02/16/Migration-from-TFS-to-Git</link><description>&lt;p&gt;Some time ago we were trying to migrate our code from TFS 2008 to the hosted TFS (http://tfs.visualstudio.com) using TFS Integration tool - &lt;a title="http://tfsintegration.codeplex.com/" href="http://tfsintegration.codeplex.com/"&gt;http://tfsintegration.codeplex.com/&lt;/a&gt;. After a few failed attempts we decided not to migrate the history but only the latest version of code and keep the TFS 2008 for historical reference. Although the tool wasn&amp;rsquo;t properly tested with hosted TFS it worked in some cases. I managed to migrate a few folders but not the entire project. Our project has a complex tree structure and keeps the history since 2008. Also some of the branches were deleted during the time. Because of all of this the migration was a nightmare.&lt;/p&gt;
&lt;p&gt;The migration was postponed due to other tasks and the good things happen during this time &amp;ndash; Microsoft announced Git support in TFS, in hosted TFS as well. Hosted TFS had Git implemented for some time already but the option wasn&amp;rsquo;t enabled except for a few people including MVPs.&lt;/p&gt;
&lt;p&gt;If you need to get your TFS source into Git first of all you need to get it from TFS into your local Git. For this purpose you&amp;rsquo;ll need either git-tfs or git-tf. After installing one of this, clone your TFS:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;git tfs clone &lt;a href="http://[YourTFSserver]:8080/tfs/DefaultCollection"&gt;http://[YourTFSserver]:8080/tfs/DefaultCollection&lt;/a&gt; $[FolderOrProjectName]&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Here we run into troubles as we were given the following error:&lt;/p&gt;
&lt;p&gt;TF50605: There was an error looking up the SID for [SOME USER NAME]&lt;/p&gt;
&lt;p&gt;The error was related to a domain user who left the company some time ago. Using the help from this web site: &lt;a title="http://davehope.co.uk/Blog/deleting-the-tfs-workspace-for-a-missing-account-fails-tf50605/" href="http://davehope.co.uk/Blog/deleting-the-tfs-workspace-for-a-missing-account-fails-tf50605/"&gt;http://davehope.co.uk/Blog/deleting-the-tfs-workspace-for-a-missing-account-fails-tf50605/&lt;/a&gt; we managed to delete the workspace linked to this user but it didn&amp;rsquo;t fix the issue.&lt;/p&gt;
&lt;p&gt;When you clone the TFS project the command line will display the changeset it&amp;rsquo;s cloning, something like:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;C1250&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Which means the changeset 1250. We searched this changeset using Team Explorer in VS and we found out that the changeset is assigned to the same user with the workspace issue.&lt;/p&gt;
&lt;p&gt;The only way to reassign this changeset to a different user is to update your TFS database.&lt;/p&gt;
&lt;p&gt;Run this to find the owner if:&lt;/p&gt;
&lt;pre class="brush: sql; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;"&gt;SELECT IdentityId FROM tbl_Identity WHERE (DisplayName LIKE 'USER NAME')&lt;/pre&gt;
&lt;p&gt;Now when you have the IdentityId you can find all the changesets made by this user:&lt;/p&gt;
&lt;pre class="brush: sql; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;"&gt;SELECT * FROM tbl_ChangeSet WHERE ownerid = [OWNERID]&lt;/pre&gt;
&lt;p&gt;A simple update will reasign the changesets to another user:&lt;/p&gt;
&lt;pre class="brush: sql; auto-links: true; collapse: false; first-line: 1; gutter: true; html-script: false; light: false; ruler: false; smart-tabs: true; tab-size: 4; toolbar: true;"&gt;UPDATE tbl_ChangeSet 
SET ownerid =  [IDENTITYID OF ANOTHER USER], committerid=[IDENTITY ID OF ANOTHER USER] 
WHERE ownerid = [IDENTITY ID OF THE OLD USER]&lt;/pre&gt;
&lt;p&gt;After this update we clone the project again and after about 8 hours the project was cloned into local Git.&lt;/p&gt;
&lt;p&gt;The next step is to push the source to the Git repository. Some steps, like removing TFS binding before pushing should be done. This article explain everything you need to now: &lt;a title="http://devlicio.us/blogs/derik_whittaker/archive/2012/11/07/moving-from-tfs-to-github-what-we-did.aspx" href="http://devlicio.us/blogs/derik_whittaker/archive/2012/11/07/moving-from-tfs-to-github-what-we-did.aspx"&gt;http://devlicio.us/blogs/derik_whittaker/archive/2012/11/07/moving-from-tfs-to-github-what-we-did.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you want to use git from Visual Studio you&amp;rsquo;ll need to install the CTP for Visual Studio Update 2: &lt;a title="http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/11/february-ctp-for-visual-studio-update-2.aspx" href="http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/11/february-ctp-for-visual-studio-update-2.aspx"&gt;http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/11/february-ctp-for-visual-studio-update-2.aspx&lt;/a&gt; and Visual Studio Tools for Git: &lt;a title="http://visualstudiogallery.msdn.microsoft.com/abafc7d6-dcaa-40f4-8a5e-d6724bdb980c" href="http://visualstudiogallery.msdn.microsoft.com/abafc7d6-dcaa-40f4-8a5e-d6724bdb980c"&gt;http://visualstudiogallery.msdn.microsoft.com/abafc7d6-dcaa-40f4-8a5e-d6724bdb980c&lt;/a&gt;&lt;/p&gt;</description><pubDate>Sat, 16 Feb 2013 15:35:00 GMT</pubDate><guid isPermaLink="true">http://www.ralbu.com:80/post/2013/02/16/Migration-from-TFS-to-Git</guid></item><item><title>Installation of TFS 2011 beta</title><link>http://www.ralbu.com:80/post/2012/05/27/Installation-of-TFS-2011-beta</link><description>&lt;p&gt;The new release of the TFS 2011 Beta comes with the Express edition. This edition is limited to 5 users but it can be a perfect solution for your home development environment. You don't need to install third party source controls and use application or plug-ins for Visual Studio integration.&lt;/p&gt;
&lt;p&gt;I've started a new project and was quite tempted to try it. This is beta but this doesn't bother me too much as I this is not for any critical development.&lt;/p&gt;
&lt;p&gt;First of all download the installation from this link: &lt;a href="http://www.microsoft.com/visualstudio/11/en-us/downloads#tfs-express"&gt;http://www.microsoft.com/visualstudio/11/en-us/downloads#tfs-express&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Next, after the installation is done you'll have to configure it:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ralbu.com/image.axd?picture=image.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border-width: 0px;" title="image" alt="image" src="http://www.ralbu.com/image.axd?picture=image_thumb.png" border="0" height="451" width="600" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The configuration didn't work. I need SP2 for SQL Express 2008. If you have the SQL Express 2008 already installed and if you follow the link form the error message you'll download the full SQL Server Express 2008 SP2. This is not just SP2. If you try to run it, it wouldn't update your existing instance. You'll have to install it as a new instance. I didn't like this because I wasn't sure if I install a new instance, will TFS use the new SQL instance or the old one. I have SQL Server 2008 R2 installed already and it didn't pick up this SQL instance. You wouldn't find just SP2 for SQL 2008 Express without full installation. You would need to install SP2 for SQL Server 2008 (not Express).&lt;/p&gt;
&lt;p&gt;After installing SP2 for SQL Server 2008, run the installation. This time the configuration just warned me that the SQL Server will be updated. Happy with that, and after a while as it took more than 10 minutes, I have TFS 2011 Express up and running.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ralbu.com/image.axd?picture=image_1.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" alt="image" src="http://www.ralbu.com/image.axd?picture=image_thumb_1.png" border="0" height="448" width="595" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Now if you want to add a new project in Team Explorer you need to install Visual Studio 11 Beta Team Explorer. Download it from here: &lt;a href="http://www.microsoft.com/visualstudio/11/en-us/downloads#express"&gt;http://www.microsoft.com/visualstudio/11/en-us/downloads#express&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;After installation open Visual Studio 11 Beta and add a new project&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.ralbu.com/image.axd?picture=image_2.png"&gt;&lt;img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" alt="image" src="http://www.ralbu.com/image.axd?picture=image_thumb_2.png" border="0" height="319" width="600" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Next open the Visual Studio 2010 and add the project to the source control.&lt;/p&gt;
&lt;p&gt;Bear in mind that when installing Visual Studio 11 Beta it changed my solution icon to the same as VS 11.&lt;/p&gt;</description><pubDate>Sun, 27 May 2012 14:35:00 GMT</pubDate><guid isPermaLink="true">http://www.ralbu.com:80/post/2012/05/27/Installation-of-TFS-2011-beta</guid></item></channel></rss>