<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>dotnet thoughts &#187; Version Control</title>
	<atom:link href="http://www.dotnetthoughts.net/category/version-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>a dotnet developer&#039;s technical blog</description>
	<lastBuildDate>Thu, 02 Feb 2012 03:18:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to queue a new build using TFS API</title>
		<link>http://www.dotnetthoughts.net/2012/01/12/how-to-queue-a-new-build-using-tfs-api/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/12/how-to-queue-a-new-build-using-tfs-api/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 05:26:25 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 4.0]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[Queue Build]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[TFS API]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2260</guid>
		<description><![CDATA[Another post on TFS API, my last post was related to how to get build Definitions and Build Details from TFS 2010, and this post is about how to queue a new build in TFS 2010 Server. As earlier you &#8230; <a href="http://www.dotnetthoughts.net/2012/01/12/how-to-queue-a-new-build-using-tfs-api/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Another post on TFS API, my <a href="http://www.dotnetthoughts.net/2012/01/05/how-to-get-build-definitions-and-build-details-from-tfs-2010/">last post</a> was related to how to get build Definitions and Build Details from TFS 2010, and this post is about how to queue a new build in TFS 2010 Server.</p>
<p>As earlier you need to add reference of following assemblies</p>
<ol>
<li>Microsoft.TeamFoundation.dll</li>
<li>Microsoft.TeamFoundation.Client.dll</li>
<li>Microsoft.TeamFoundation.Build.Client.dll</li>
</ol>
<p>which will be available under – C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ReferenceAssemblies\v2.0\ location.</p>
<p>And here is the code snippet</p>
<pre class="brush: csharp; title: ; notranslate">
var tfsName = &quot;http://dotnetthoughts:8080/tfs/defaultcollection&quot;;
var tfs = new TeamFoundationServer(tfsName, new UICredentialsProvider());
tfs.EnsureAuthenticated();
if (tfs.HasAuthenticated)
{
	var buildServer = tfs.GetService(typeof(IBuildServer)) as IBuildServer;
	var buildDefinition = buildServer.GetBuildDefinition(&quot;&quot;, &quot;&quot;);
	buildServer.QueueBuild(buildDefinition);
}
catch (Exception exception)
{
    MessageBox.Show(exception.Message);
    throw;
}
</pre>
<p style="text-align: justify;">Here is how it works, we are connecting and getting the TFS Server, then getting the Build Server using GetService method. And to get the build definition instead of the earlier post(to get all the Build definitions, we are passing &#8220;*&#8221;), we need to specify the Team project and Build name(Build definitions are unique per team project in TFS). Then we can call QueueBuild() method on Build server object, with build definition as the parameter, which will queue the build definition default values.</p>
<p>Happy coding <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2012/01/05/how-to-get-build-definitions-and-build-details-from-tfs-2010/" title="Permanent link to How to get Build Definitions and Build Details from TFS 2010">How to get Build Definitions and Build Details from TFS 2010</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/" title="Permanent link to TFS Build Notification Tool">TFS Build Notification Tool</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/02/21/how-to-store-tfs-credentials/" title="Permanent link to How to store TFS credentials">How to store TFS credentials</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2010/11/25/raven-db-introduction/" title="Permanent link to Raven DB &#8211; Introduction">Raven DB &#8211; Introduction</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/05/30/how-to-do-rollback-of-a-changeset-in-tfs-2010/" title="Permanent link to How to do Rollback of a change set in TFS 2010">How to do Rollback of a change set in TFS 2010</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/12/how-to-queue-a-new-build-using-tfs-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cloak option missing from source control explorer context menu</title>
		<link>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/</link>
		<comments>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:57:34 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Cloak]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=2233</guid>
		<description><![CDATA[Ever noticed some time cloak menu item missing from source control explorer context menu? Cloak option is missing from source control explorer context menu Cloaking used to prevent users from viewing specified workspace folders or for folders you do not &#8230; <a href="http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Ever noticed some time cloak menu item missing from source control explorer context menu?</p>
<div class="mceTemp mceIEcenter" style="text-align: justify;">
<dl id="attachment_2235" class="wp-caption aligncenter" style="width: 255px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-2235" title="Cloak option is missing from source control explorer context menu" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/clock_option_missing1.jpg" alt="Cloak option is missing from source control explorer context menu" width="245" height="121" /></dt>
<dd class="wp-caption-dd">Cloak option is missing from source control explorer context menu</dd>
</dl>
</div>
<p style="text-align: justify;">Cloaking used to prevent users from viewing specified workspace folders or for folders you do not currently need. Cloaking is useful when you are working with files from two or more branches under a common parent to prevent you from copying files unnecessarily. Finally, cloaking increases performance bandwidth and conserves local disk space by preventing folders and files not used currently from being copied to the local working folder. Today I noticed that I am missing the cloak option for a specific folder. I couldn&#8217;t find the reason, because it available for another Folder in same workspace. Later I found that it was because of the mapping of local and source folder are different. Like my TFS path was $Projects/System/Data/Binaries, it should be mapped to C:\Projects\System\Data\Binaries, but I was mapped to some other folder like C:\Projects\System\Data\DataBinaries. And then I changed it via File &gt; Source Control &gt; Workspaces option. After this I got the cloak option. <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="attachment_2234" class="wp-caption aligncenter" style="width: 252px"><img class="size-full wp-image-2234" title="Cloak option of Source control explorer conext menu" src="http://www.dotnetthoughts.net/wp-content/uploads/2012/01/clock_option_missing.jpg" alt="Cloak option of Source control explorer conext menu" width="242" height="117" /><p class="wp-caption-text">Cloak option of Source control explorer conext menu</p></div>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/02/21/how-to-store-tfs-credentials/" title="Permanent link to How to store TFS credentials">How to store TFS credentials</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/" title="Permanent link to TFS Build Notification Tool">TFS Build Notification Tool</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/02/28/controls-toolbox-not-showing-in-visual-studio-2010/" title="Permanent link to Controls Toolbox not showing in Visual Studio 2010">Controls Toolbox not showing in Visual Studio 2010</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/" title="Permanent link to Changing the diff program used by Visual Studio">Changing the diff program used by Visual Studio</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/10/11/open-visual-studio-files-as-administrator/" title="Permanent link to Open Visual Studio Files As Administrator">Open Visual Studio Files As Administrator</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to do Rollback of a change set in TFS 2010</title>
		<link>http://www.dotnetthoughts.net/2011/05/30/how-to-do-rollback-of-a-changeset-in-tfs-2010/</link>
		<comments>http://www.dotnetthoughts.net/2011/05/30/how-to-do-rollback-of-a-changeset-in-tfs-2010/#comments</comments>
		<pubDate>Mon, 30 May 2011 11:49:17 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[Rollback]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[TFS 2010]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1655</guid>
		<description><![CDATA[TFS 2010 provides you the ability to Rollback or Undo a ChangeSet from TFS 2010 itself. You can also see it as a new pending change type as Rollback (new change type in the history) inside Team Explorer. You can &#8230; <a href="http://www.dotnetthoughts.net/2011/05/30/how-to-do-rollback-of-a-changeset-in-tfs-2010/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>TFS 2010 provides you the ability to Rollback or Undo a ChangeSet from TFS 2010 itself. You can also see it as a new pending change type as Rollback (new change type in the history) inside Team Explorer. </p>
<p>You can more information in MSDN : <a target="_blank" href="http://msdn.microsoft.com/en-us/library/dd380776(VS.100).aspx">Rollback Command (Team Foundation Version Control)</a></p>
<p>If you want to rollback you change 123, you need to do some thing like</p>
<pre class="brush: plain; title: ; notranslate">
cd c:\Code\you must useProjectName
tf rollback /changeset:123
</pre>
<div class="betterrelated none"><p>No related content found.</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/05/30/how-to-do-rollback-of-a-changeset-in-tfs-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the diff program used by Visual Studio</title>
		<link>http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/</link>
		<comments>http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/#comments</comments>
		<pubDate>Wed, 11 May 2011 12:37:10 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Beyond Compare]]></category>
		<category><![CDATA[Diff]]></category>
		<category><![CDATA[Team Foundation Server]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1623</guid>
		<description><![CDATA[You can configure your own diff program, instead of the default diff program provided from Microsoft for comparing two files. In this post I am using Beyond Compare. Open Visual Studio 2010 Select Tools &#62; Options menu. Select the Source &#8230; <a href="http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You can configure your own diff program, instead of the default diff program provided from Microsoft for comparing two files. In this post I am using Beyond Compare.</p>
<ol>
<li>Open Visual Studio 2010</li>
<li>Select Tools &gt; Options menu.</li>
<li>Select the Source control Tab in the left side.</li>
<div id="attachment_1624" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/05/source_control.png"><img class="size-medium wp-image-1624" title="Source control options in Visual Studio options" src="http://www.dotnetthoughts.net/wp-content/uploads/2011/05/source_control-300x172.png" alt="Source control options in Visual Studio options" width="300" height="172" /></a><p class="wp-caption-text">Source control options in Visual Studio options</p></div>
<li>Click the &#8220;Configure User Tools&#8221; button in the right pane. It will popup a Configure user tools dialog like this.</li>
<div id="attachment_1628" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/05/source_control_1.png"><img class="size-medium wp-image-1628" title="Configure user tools dialog" src="http://www.dotnetthoughts.net/wp-content/uploads/2011/05/source_control_1-300x178.png" alt="Configure user tools dialog" width="300" height="178" /></a><p class="wp-caption-text">Configure user tools dialog</p></div>
<li>Now you are ready to enter the configuration for whichever tool you choose to use. Below is the settings for Beyond Compare.</li>
<div id="attachment_1630" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/05/source_control_2.png"><img src="http://www.dotnetthoughts.net/wp-content/uploads/2011/05/source_control_2-300x155.png" alt="Settings for Compare tool" title="Settings for Compare tool" width="300" height="155" class="size-medium wp-image-1630" /></a><p class="wp-caption-text">Settings for Compare tool</p></div>
<li>Here is the settings.</li>
<blockquote><p>
Extension: .*<br />
Operation: Compare<br />
Command: C:\Program Files\Beyond Compare 3\BC2.exe [replace with the proper path for your machine]<br />
Arguments: %1 %2 /lefttitle=%6 /righttitle=%7
</p></blockquote>
</ol>
<p>Happy programming <img src='http://www.dotnetthoughts.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Here is a detailed post regarding <a href="http://blogs.msdn.com/b/jmanning/archive/2006/02/20/diff-merge-configuration-in-team-foundation-common-command-and-argument-values.aspx" target="_blank">diff/merge configuration in Team Foundation &#8211; common Command and Argument values</a> from James Manning.</p>
<div class="betterrelated none"><p>No related content found.</p></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TFS Build Notification Tool</title>
		<link>http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/</link>
		<comments>http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 02:46:17 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Version Control]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[TFS Build Notification]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://www.dotnetthoughts.net/?p=1382</guid>
		<description><![CDATA[Yesterday my lead introduced me a cool tool, TFS Build Notification Tool; which helps to get status of the Builds queued / running / completed. In my office we were using CI (Continues Integration) so when ever a check-in happens &#8230; <a href="http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Yesterday my lead introduced me a cool tool, TFS Build Notification Tool; which helps to get status of the Builds queued / running / completed. In my office we were using CI (Continues Integration) so when ever a check-in happens to the TFS Server; it will trigger the build. And it was very difficult to track whether the build is completed successfully or not. This application runs on the System Tray and show updates when Build completes, whether is successful or not. There are options to subscribe which projects you want to monitor. If your Windows credentials are same as TFS, it will take it automatically; otherwise you need to provide the credentials.</p>
<p>Build Notification tool is now part of TFS product itself. So, it has been removed from Powertools.</p>
<p>Start Menu &gt; All programs &gt; Microsoft Visual Studio 2010 &gt; Team Foundation Server tools &gt; Build Notifications.</p>
<div id="attachment_1399" class="wp-caption aligncenter" style="width: 234px"><a href="http://www.dotnetthoughts.net/wp-content/uploads/2011/01/tfs_notification_tool.png"><img src="http://www.dotnetthoughts.net/wp-content/uploads/2011/01/tfs_notification_tool.png" alt="TFS Build Notification Tool" title="TFS Build Notification Tool" width="224" height="168" class="size-full wp-image-1399" /></a><p class="wp-caption-text">TFS Build Notification Tool</p></div>
<div class="betterrelated"><p><strong>Related content:</strong></p>
<ol><li> <a href="http://www.dotnetthoughts.net/2011/02/21/how-to-store-tfs-credentials/" title="Permanent link to How to store TFS credentials">How to store TFS credentials</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2012/01/12/how-to-queue-a-new-build-using-tfs-api/" title="Permanent link to How to queue a new build using TFS API">How to queue a new build using TFS API</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2012/01/08/cloak-option-missing-from-source-control-explorer-context-menu/" title="Permanent link to Cloak option missing from source control explorer context menu">Cloak option missing from source control explorer context menu</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2011/05/11/changing-the-diff-program-used-by-visual-studio/" title="Permanent link to Changing the diff program used by Visual Studio">Changing the diff program used by Visual Studio</a>  </li>
<li> <a href="http://www.dotnetthoughts.net/2012/01/05/how-to-get-build-definitions-and-build-details-from-tfs-2010/" title="Permanent link to How to get Build Definitions and Build Details from TFS 2010">How to get Build Definitions and Build Details from TFS 2010</a>  </li>
</ol></div>]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2011/01/04/tfs-build-notification-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

