<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Buck Hodges</title><link>http://blogs.msdn.com/b/buckh/</link><description>Visual Studio ALM (VSALM, formerly VSTS) - Team Foundation Service/Server (TFS) - MSDN</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Team Foundation Server 2012.2 (aka Update 2) now available</title><link>http://blogs.msdn.com/b/buckh/archive/2013/04/04/team-foundation-server-2012-2-aka-update-2-now-available.aspx</link><pubDate>Fri, 05 Apr 2013 00:41:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10407799</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10407799</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/04/04/team-foundation-server-2012-2-aka-update-2-now-available.aspx#comments</comments><description>&lt;p&gt;Today we released the second update for TFS 2012 (&lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=38185"&gt;TFS&lt;/a&gt;, &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=38190"&gt;TFS Express&lt;/a&gt;). You will find a detailed list of features in this &lt;a href="http://blogs.msdn.com/b/visualstudioalm/archive/2013/02/12/visual-studio-update-2-now-available.aspx"&gt;blog post&lt;/a&gt;. You need to install the one that matches your installation – full or express. You do not need to uninstall TFS 2012 RTM or TFS 2012 Update 1. Installing TFS 2012.2 will take care of uninstalling your previous TFS 2012 installation and then installing the new version. You also do not need to detach collections or anything else special. As always, you should make a backup of your server prior to upgrade (you do make &lt;em&gt;and&lt;/em&gt; test backups regularly, right?).&lt;/p&gt;  &lt;p&gt;In this update, we preserve most of the configuration settings. This was a common complaint in the first update. We have a few more settings to preserve, most notably build machine settings, that we will address in the third update.&lt;/p&gt;  &lt;p&gt;The one feature I want to highlight is the compatibility with TFS 2010 build agents/controllers. I mentioned this in a &lt;a href="http://blogs.msdn.com/b/buckh/archive/2013/03/30/team-foundation-server-2012-update-2-supports-2010-build-agents-and-controllers.aspx"&gt;previous post&lt;/a&gt;. This is one of those features that’s incredibly valuable but isn’t obvious – you have to know about it.&lt;/p&gt;  &lt;p&gt;This update process is completely new for the 2012 product cycle, and we learned a lot from our mistakes with the first update. Of course, our testing was even more thorough for this release.&lt;/p&gt;  &lt;p&gt;The biggest change we made was getting more users trying early releases of it. We did this because we realized that some of the issues we had to patch for the first update were due just to the fact that customers exercise the product in different ways, and the combinations are nearly infinite. In a regular major version cycle, we have at least one public “go live” release that is crucial to flushing out bugs. We made CTP3 “go live” for our MVPs. We made CTP4 “go live” for everyone. That helped immensely. Every issue that was reported to us we investigated and fixed.&lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Follow me on Twitter at &lt;a href="http://twitter.com/tfsbuck"&gt;http://twitter.com/tfsbuck&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10407799" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Team+Foundation/">Team Foundation</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFS+2012/">TFS 2012</category></item><item><title>Using VS 2012 and getting “TF206018: The items could not be…” when creating a project using Git</title><link>http://blogs.msdn.com/b/buckh/archive/2013/03/30/using-vs-2012-and-getting-tf206018-the-items-could-not-be-when-creating-a-project-using-git.aspx</link><pubDate>Sat, 30 Mar 2013 16:12:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10406483</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10406483</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/03/30/using-vs-2012-and-getting-tf206018-the-items-could-not-be-when-creating-a-project-using-git.aspx#comments</comments><description>&lt;p&gt;If you go to &lt;a href="http://tfs.visualstudio.com/"&gt;Team Foundation Service&lt;/a&gt;, create a new account, and then create a new team project that uses Git, you may receive the following error message when either you try to connect VS 2012 or use the “Open new instance of Visual Studio” from your project’s web page and try to add a new Visual Studio project to source control.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;TF206018: The items could not be added to source control because either no team projects have been set up, or because you do not have permission to access any of the team projects in the current collection.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;If you run into this situation, it is because Visual Studio 2012 does not know how to handle a team project that uses Git. The normal version control entries for the team project are not there, so when VS 2012 asks for $/&amp;lt;your team project&amp;gt;, the server sends back TF206018.&lt;/p&gt;  &lt;p&gt;To fix this, you need to install Update 2 for Visual Studio 2012 and the Visual Studio Tools for Git, as described in the topic &lt;a href="https://tfs.visualstudio.com/en-us/learn/code/create-code-project-vs-git/"&gt;Create a new code project&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;When the next major version of Visual Studio ships, the Git support will be built-in.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Follow me on Twitter at &lt;/em&gt;&lt;a href="http://twitter.com/tfsbuck"&gt;&lt;em&gt;twitter.com/tfsbuck&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10406483" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/VS2012/">VS2012</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFService/">TFService</category></item><item><title>How to see activity and job history in TFS 2012</title><link>http://blogs.msdn.com/b/buckh/archive/2013/03/30/how-to-see-activity-and-job-history-in-tfs-2012.aspx</link><pubDate>Sat, 30 Mar 2013 15:32:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10406480</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10406480</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/03/30/how-to-see-activity-and-job-history-in-tfs-2012.aspx#comments</comments><description>&lt;p&gt;With TFS 2012, we introduced a new feature in the web UI that makes it easy to look at the activity and job history on your TFS 2012 server (this feature was first introduced in 2012 RTM). Before the 2012 release, you would have had to look at things like tbl_Command directly in the database to get this information.&lt;/p&gt;  &lt;p&gt;To see this feature, just go to http://&amp;lt;yourserver&amp;gt;/tfs/_oi if you have admin privileges.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/b/granth"&gt;Grant Holliday&lt;/a&gt; has written a great blog post, &lt;a href="http://blogs.msdn.com/b/granth/archive/2013/02/13/tfs2012-new-tools-for-tfs-administrators.aspx"&gt;TFS2012: New tools for TFS Administrators&lt;/a&gt;, that walks you through the feature. One thing that I’ll call attention to is for folks not used to looking at the info in tbl_Command, you’ll need to make sure you notice the Execution Count in the web UI, which we use to record a sequence of the same calls without writing a row per call. Grant explains it in his post, but it’s easy to over look.&lt;/p&gt;  &lt;p&gt;Also, if you are interested in what jobs run and when, check out &lt;a href="http://blogs.msdn.com/b/granth/archive/2013/02/13/tfs2012-what-are-all-the-different-jobs-built-in-to-tfs.aspx"&gt;TFS2012: What are all the different Jobs built-in to TFS?&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Here are a couple of screenshots to whet your appetite.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-06-17-metablogapi/8255.image_5F00_14607FDB.png"&gt;&lt;img title="" style="margin: 0px 0px 0px 15px" border="0" alt="Screenshot of TFS Activity Log Web Interface" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-06-17-metablogapi/7144.image_5F00_thumb_5F00_66630755.png" width="500" height="375" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-06-17-metablogapi/3286.image_5F00_540606C7.png"&gt;&lt;img title="image" style="margin: 0px 0px 0px 15px" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-06-17-metablogapi/4276.image_5F00_thumb_5F00_3E5BA85D.png" width="500" height="375" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Follow me on Twitter at &lt;/em&gt;&lt;a href="http://twitter.com/tfsbuck"&gt;&lt;em&gt;twitter.com/tfsbuck&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10406480" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Team+Foundation/">Team Foundation</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFS+2012/">TFS 2012</category></item><item><title>Team Foundation Server 2012 Update 2 supports 2010 Build Agents and Controllers</title><link>http://blogs.msdn.com/b/buckh/archive/2013/03/30/team-foundation-server-2012-update-2-supports-2010-build-agents-and-controllers.aspx</link><pubDate>Sat, 30 Mar 2013 15:20:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10406479</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10406479</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/03/30/team-foundation-server-2012-update-2-supports-2010-build-agents-and-controllers.aspx#comments</comments><description>&lt;p&gt;One of the changes we made in TFS 2012 for Update 2 was to support TFS 2010 build agents and controllers. This provides several major benefits. The first is the obvious one of not having to upgrade your build agents and controllers when you upgrade your server to 2012. The second is that you don’t have to alter your custom build WF activities to be built with 2012. The third is that you will still be able to use Windows XP and Windows Server 2003 to run build agents and controllers – OSes that are not supported with the TFS 2012 release. This feature is available in the currently released CTP 4 of Update 2, and the final version of Update 2 will be available shortly.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blog.hinshelwood.com/"&gt;Martin Hinshelwood&lt;/a&gt;, a Microsoft MVP, has written an extensive blog post about this feature.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://blog.hinshelwood.com/visual-studio-2012-update-2-supports-2010-build-servers/"&gt;&lt;strong&gt;Visual Studio 2012 Update 2 supports 2010 Build Servers&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;Did you know that Visual Studio 2012 Update 2 supports 2010 Build Servers? Being able to connect TF Build 2010 Controllers to TFS 2012 is opening up upgrade paths for customers that are currently blocked from upgrading to TFS 2012.&lt;/p&gt;    &lt;p&gt;&lt;a href="http://blog.hinshelwood.com/visual-studio-2012-update-2-supports-2010-build-servers/"&gt;more…&lt;/a&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Follow me on Twitter at &lt;a href="http://twitter.com/tfsbuck"&gt;twitter.com/tfsbuck&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10406479" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Team+Foundation/">Team Foundation</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Team+Build/">Team Build</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFS+2012/">TFS 2012</category></item><item><title>OData Service for TFS v2</title><link>http://blogs.msdn.com/b/buckh/archive/2013/01/09/odata-service-for-tfs-v2.aspx</link><pubDate>Wed, 09 Jan 2013 14:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10383321</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10383321</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/01/09/odata-service-for-tfs-v2.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://blogs.msdn.com/briankel"&gt;Brian Keller&lt;/a&gt; has released a beta of the second version of his OData service. We are also working to bring it to TF Service, so stay tuned. Check out the beta and give him &lt;a href="mailto:TFSOData@Microsoft.com"&gt;feedback&lt;/a&gt;!&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://blogs.msdn.com/b/briankel/archive/2013/01/07/odata-service-for-team-foundation-server-v2.aspx"&gt;&lt;strong&gt;OData Service for Team Foundation Server v2&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt;    &lt;p&gt;Today we are releasing the beta of the &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=36230"&gt;OData Service for Team Foundation Server v2&lt;/a&gt; along with a sample Windows Store application &lt;/p&gt;    &lt;p&gt;The purpose of this service is to help developers work with data from Team Foundation Server on multiple device types (such as smartphones and tablets) and operating systems. OData provides a great solution for this goal, and has been embraced by numerous developers for building great device-specific applications. OData is accessible from any device and application stack which supports HTTP requests. &lt;/p&gt;    &lt;p&gt;&lt;a href="http://blogs.msdn.com/b/briankel/archive/2013/01/07/odata-service-for-team-foundation-server-v2.aspx"&gt;more…&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10383321" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Team+Foundation/">Team Foundation</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFS+2010/">TFS 2010</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFS+2012/">TFS 2012</category></item><item><title>New build of git-tf required for use with Team Foundation Service</title><link>http://blogs.msdn.com/b/buckh/archive/2013/01/08/new-build-of-git-tf-required-for-use-with-team-foundation-service.aspx</link><pubDate>Tue, 08 Jan 2013 15:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10383181</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10383181</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/01/08/new-build-of-git-tf-required-for-use-with-team-foundation-service.aspx#comments</comments><description>&lt;p&gt;Yesterday&amp;rsquo;s update of &lt;a href="http://tfs.visualstudio.com/"&gt;Team Foundation Service&lt;/a&gt; requires a new build of &lt;a href="http://gittf.codeplex.com/"&gt;git-tf&lt;/a&gt;, which is now available for &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=30474"&gt;download&lt;/a&gt;. Using a version of git-tf prior to the update will result in repeated prompts for your password but will never succeed in authenticating.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Follow me on Twitter at &lt;/em&gt;&lt;a href="http://twitter.com/tfsbuck"&gt;&lt;em&gt;http://twitter.com/tfsbuck&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10383181" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Team+Foundation/">Team Foundation</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFService/">TFService</category></item><item><title>How to connect to TF Service without a prompt for LiveID credentials</title><link>http://blogs.msdn.com/b/buckh/archive/2013/01/07/how-to-connect-to-tf-service-without-a-prompt-for-liveid-credentials.aspx</link><pubDate>Mon, 07 Jan 2013 15:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10382836</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10382836</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/01/07/how-to-connect-to-tf-service-without-a-prompt-for-liveid-credentials.aspx#comments</comments><description>&lt;p&gt;Normally when you connect to the &lt;a href="http://tfs.visualstudio.com"&gt;Team Foundation Service&lt;/a&gt; you are presented with a web page to log in with your Microsoft Account (aka LiveID). When you log in you can choose to have it remember you and you won’t have to enter your Microsoft Account credentials again (unless you don’t log in again for a long time, and then you’ll be prompted again).&lt;/p&gt;  &lt;p&gt;That’s great for humans, but what about an application or another web service that wants to connect? For that the code will need to use “alternate credentials,&amp;quot; which you must enable on your account. This is the same setting used to enable &lt;a href="http://tfs.visualstudio.com/en-us/learn/code/use-git-and-vs-with-tfs/"&gt;basic authentication for git-tf&lt;/a&gt;. Then we can write some code to connect to the service with those credentials.&lt;/p&gt;  &lt;p&gt;Longer term, we will have OAuth support available as well, but that’s not ready yet.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Enabling Alternate Credentials&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;You’ll need to first to turn on this feature. First, visit your account or project in a browser, click on your name in the upper right, and then click My Profile.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/0880.myprofile_5F00_494ABDAB.png"&gt;&lt;img title="myprofile" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px 0px 0px 10px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="myprofile" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/1856.myprofile_5F00_thumb_5F00_0EEF47CA.png" width="154" height="112" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;On the User Profile dialog, click on the Credentials tab.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/8132.enablecreds_5F00_6748CB9F.png"&gt;&lt;img title="enablecreds" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px 0px 0px 10px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="enablecreds" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/3426.enablecreds_5F00_thumb_5F00_667065B5.png" width="504" height="421" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now provide a password and save the changes.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/3835.password_5F00_2B3C89EA.png"&gt;&lt;img title="password" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px 0px 0px 10px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="password" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/0218.password_5F00_thumb_5F00_1C91DE05.png" width="504" height="423" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Using Alternate Credentials in code&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Before going further, you’ll need to make sure that you have Update 1 for Visual Studio 2012 or newer installed. That update includes enhancements to the TFS client object model to support alternate credentials.&lt;/p&gt;  &lt;p&gt;The easiest way to get the latest update is either via clicking on the “toast” notification that pops up from the Windows taskbar or in VS going to Tools –&amp;gt; Extensions and Updates…, clicking on Updates followed by Product Updates and installing the latest update. Alternatively, you can download it &lt;a href="http://www.microsoft.com/en-us/download/details.aspx?id=35774"&gt;here&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;You can verify that you have Update 1 (or newer) installed in VS using Help –&amp;gt; About Microsoft Visual Studio.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/5187.vshelp_5F00_2FD294A4.png"&gt;&lt;img title="vshelp" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px 0px 0px 10px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="vshelp" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/4024.vshelp_5F00_thumb_5F00_68110BBC.png" width="504" height="377" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Now that we have the credentials turned on, we’ll now use them from a simple console app.&lt;/p&gt;  &lt;pre class="code"&gt;&amp;#160;&lt;/pre&gt;

&lt;p&gt;After creating a new console app, add a reference to Microsoft.TeamFoundation.Client.dll, which you will find under v2.0 in ReferenceAssemblies. The client object model for TFS is almost entirely built with .NET 3.5 (CLR 2.0) in order to support running the TFS web parts in SharePoint.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/5504.image_5F00_5F410370.png"&gt;&lt;img title="image" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px 0px 0px 10px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/5504.image_5F00_thumb_5F00_6443411F.png" width="504" height="331" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here’s the code.&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="background: white; color: blue"&gt;using &lt;/span&gt;&lt;span style="background: white; color: black"&gt;System;
&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;using &lt;/span&gt;&lt;span style="background: white; color: black"&gt;System.Collections.Generic;
&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;using &lt;/span&gt;&lt;span style="background: white; color: black"&gt;System.Linq;
&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;using &lt;/span&gt;&lt;span style="background: white; color: black"&gt;System.Net;
&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;using &lt;/span&gt;&lt;span style="background: white; color: black"&gt;System.Text;
&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;using &lt;/span&gt;&lt;span style="background: white; color: black"&gt;System.Threading.Tasks;

&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;using &lt;/span&gt;&lt;span style="background: white; color: black"&gt;Microsoft.TeamFoundation.Client;

&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;namespace &lt;/span&gt;&lt;span style="background: white; color: black"&gt;ConsoleApplication1
{
    &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;class &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;Program
    &lt;/span&gt;&lt;span style="background: white; color: black"&gt;{
        &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;static void &lt;/span&gt;&lt;span style="background: white; color: black"&gt;Main(&lt;/span&gt;&lt;span style="background: white; color: blue"&gt;string&lt;/span&gt;&lt;span style="background: white; color: black"&gt;[] args)
        {
            &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;NetworkCredential &lt;/span&gt;&lt;span style="background: white; color: black"&gt;netCred = &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;new &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;NetworkCredential&lt;/span&gt;&lt;span style="background: white; color: black"&gt;(
                &lt;/span&gt;&lt;span style="background: white; color: #a31515"&gt;&amp;quot;someone@yahoo.com&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black"&gt;,
                &lt;/span&gt;&lt;span style="background: white; color: #a31515"&gt;&amp;quot;password&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black"&gt;);
            &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;BasicAuthCredential &lt;/span&gt;&lt;span style="background: white; color: black"&gt;basicCred = &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;new &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;BasicAuthCredential&lt;/span&gt;&lt;span style="background: white; color: black"&gt;(netCred);
            &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;TfsClientCredentials &lt;/span&gt;&lt;span style="background: white; color: black"&gt;tfsCred = &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;new &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;TfsClientCredentials&lt;/span&gt;&lt;span style="background: white; color: black"&gt;(basicCred);
            tfsCred.AllowInteractive = &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;false&lt;/span&gt;&lt;span style="background: white; color: black"&gt;;

            &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;TfsTeamProjectCollection &lt;/span&gt;&lt;span style="background: white; color: black"&gt;tpc = &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;new &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;TfsTeamProjectCollection&lt;/span&gt;&lt;span style="background: white; color: black"&gt;(
                &lt;/span&gt;&lt;span style="background: white; color: blue"&gt;new &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;Uri&lt;/span&gt;&lt;span style="background: white; color: black"&gt;(&lt;/span&gt;&lt;span style="background: white; color: #a31515"&gt;&amp;quot;https://YourAcct.visualstudio.com/DefaultCollection&amp;quot;&lt;/span&gt;&lt;span style="background: white; color: black"&gt;),
                tfsCred);

            tpc.Authenticate();

            &lt;/span&gt;&lt;span style="background: white; color: #2b91af"&gt;Console&lt;/span&gt;&lt;span style="background: white; color: black"&gt;.WriteLine(tpc.InstanceId);
        }
    }
}&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;I’ve added two using statements, one for &lt;span style="font-family: courier new"&gt;System.Net&lt;/span&gt; to pull in &lt;span style="font-family: courier new"&gt;NetworkCredential&lt;/span&gt; and one for &lt;span style="font-family: courier new"&gt;Microsoft.TeamFoundation.Client&lt;/span&gt; for the TFS classes we’ll need.&lt;/p&gt;

&lt;p&gt;The first thing we construct is a standard &lt;span style="font-family: courier new"&gt;NetworkCredential&lt;/span&gt; object with the username (the email address that you use for your Microsoft Account) and the password that you created for alternate credentials. On the &lt;span style="font-family: courier new"&gt;TfsClientCredentials&lt;/span&gt; object, we set &lt;span style="font-family: courier new"&gt;AllowInteractive&lt;/span&gt; to false to prevent a prompt dialog being shown if the credentials are invalid.&lt;/p&gt;

&lt;p&gt;In constructing the &lt;span style="font-family: courier new"&gt;TfsTeamProjectCollection&lt;/span&gt;, we must specify the URL to the collection and the credentials. Note that all connections to accounts in TF Service require https. Currently, there is only one collection per account in TF Service, so it is always DefaultCollection.&lt;/p&gt;

&lt;p&gt;Finally, we call &lt;span style="font-family: courier new"&gt;Authenticate()&lt;/span&gt; to verify that we have supplied the correct credentials and test that it is working by printing the unique &lt;span style="font-family: courier new"&gt;InstanceId&lt;/span&gt; of the collection.&lt;/p&gt;

&lt;p&gt;Now the rest of the TFS client object model is available for use with the TF Service from applications that cannot prompt for credentials.&lt;/p&gt;

&lt;p&gt;Enjoy!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Follow me on Twitter at &lt;/em&gt;&lt;a href="http://twitter.com/tfsbuck"&gt;&lt;em&gt;http://twitter.com/tfsbuck&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10382836" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Team+Foundation/">Team Foundation</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFS+API/">TFS API</category><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFService/">TFService</category></item><item><title>Bing desktop–set your background to the Bing image of the day</title><link>http://blogs.msdn.com/b/buckh/archive/2013/01/02/bing-desktop-set-your-background-to-the-bing-image-of-the-day.aspx</link><pubDate>Wed, 02 Jan 2013 18:01:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10381863</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10381863</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2013/01/02/bing-desktop-set-your-background-to-the-bing-image-of-the-day.aspx#comments</comments><description>&lt;p&gt;Okay, so this has nothing to do with ALM, but I really like the &lt;a href="http://www.bing.com/explore/desktop"&gt;Bing desktop app&lt;/a&gt; for one feature: It sets the desktop background to the Bing image of the day. I used to run this app on Win7 and had missed it since moving to Win8 (I love Win8 and have it running on all my machines). Before the recent update, installing it on Win8 would result in a message telling you to upgrade to Win7. That’s a good reminder to be careful about what you do with version checks in your code.&lt;/p&gt;  &lt;p&gt;After downloading it, I drag it to the top of the screen and change the option to have it only show when I click on it (first option under settings) so that it doesn’t drop down when my mouse moves across the top of the screen.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/5554.image_5F00_17F1B498.png"&gt;&lt;img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/5852.image_5F00_thumb_5F00_670EFD2C.png" width="644" height="137" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Of course my favorite use of the app itself is to find out more about the image by hovering over the “i&amp;quot; button (clicking on it will let you pick a different Bing image). Yes, I do use Bing as my default search engine these days, so I could find this info in the browser as well, but it’s more convenient.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/4061.image_5F00_53819D8B.png"&gt;&lt;img title="image" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; border-left: 0px; display: inline; padding-right: 0px" border="0" alt="image" src="http://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-36-09-metablogapi/5543.image_5F00_thumb_5F00_52A937A1.png" width="644" height="49" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10381863" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/Random/">Random</category></item><item><title>Extending Team Explorer in Visual Studio 2012</title><link>http://blogs.msdn.com/b/buckh/archive/2012/12/21/extending-team-explorer-in-visual-studio-2012.aspx</link><pubDate>Sat, 22 Dec 2012 03:10:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10380245</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10380245</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2012/12/21/extending-team-explorer-in-visual-studio-2012.aspx#comments</comments><description>&lt;p&gt;Today we posted information on how to extend the Team Explorer window in Visual Studio 2012. Check it out!&lt;/p&gt;  &lt;h3&gt;&lt;a href="http://code.msdn.microsoft.com/vstudio/Extending-Explorer-in-9dccd594"&gt;&lt;font style="font-weight: bold"&gt;Extending Team Explorer in Visual Studio 2012&lt;/font&gt;&lt;/a&gt;&lt;/h3&gt;  &lt;p&gt;Team Explorer in Visual Studio 2012 offers multiple options for extending the user experience. This sample demonstrates several of the extensibility points by adding a new Team Explorer page as well as by placing a new section onto the Pending Changes page.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Team Explorer in Visual Studio 2012 offers multiple options for extending the user experience.&amp;#160; This sample demonstrates several of the extensibility points by:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Adding a new &amp;quot;Recent Changes&amp;quot; Team Explorer page with two sections. &lt;/li&gt;    &lt;li&gt;Adding a new &amp;quot;Selected File Info&amp;quot; section to the built-in Pending Changes page. &lt;/li&gt;    &lt;li&gt;Adding a &amp;quot;Recent Changes&amp;quot; navigation link under the Pending Changes navigation item. &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;a href="http://code.msdn.microsoft.com/vstudio/Extending-Explorer-in-9dccd594"&gt;more…&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;Follow me on Twitter at &lt;/em&gt;&lt;a href="http://twitter.com/tfsbuck"&gt;&lt;em&gt;http://twitter.com/tfsbuck&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10380245" width="1" height="1"&gt;</description></item><item><title>TFS 2012 Update 1: Permissions lost on attaching a collection</title><link>http://blogs.msdn.com/b/buckh/archive/2012/12/21/tfs-2012-update-1-permissions-lost-on-attaching-a-collection-fix-available-in-early-january.aspx</link><pubDate>Sat, 22 Dec 2012 03:03:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10380243</guid><dc:creator>Buck Hodges</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.msdn.com/b/buckh/rsscomments.aspx?WeblogPostID=10380243</wfw:commentRss><comments>http://blogs.msdn.com/b/buckh/archive/2012/12/21/tfs-2012-update-1-permissions-lost-on-attaching-a-collection-fix-available-in-early-january.aspx#comments</comments><description>&lt;p&gt;I just &lt;a href="http://blogs.msdn.com/b/visualstudioalm/archive/2012/12/21/tfs-2012-update-1-permissions-lost-on-attaching-a-collection-fix-available-in-early-january.aspx"&gt;posted on the ALM blog&lt;/a&gt; about this issue.&lt;a href="http://twitter.com/tfsbuck"&gt;&lt;em&gt;&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10380243" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/b/buckh/archive/tags/TFS+2012/">TFS 2012</category></item></channel></rss>