{"id":2983,"date":"2007-01-10T21:56:00","date_gmt":"2007-01-10T21:56:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/2007\/01\/10\/john-robbins-approach-to-working-offline-with-team-foundation-server\/"},"modified":"2007-01-10T21:56:00","modified_gmt":"2007-01-10T21:56:00","slug":"john-robbins-approach-to-working-offline-with-team-foundation-server","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/john-robbins-approach-to-working-offline-with-team-foundation-server\/","title":{"rendered":"John Robbins&#8217; approach to working offline with Team Foundation Server"},"content":{"rendered":"<p><a href=\"http:\/\/www.wintellect.com\/Weblogs\/CategoryView,category,John%20Robbins.aspx\">John Robbins<\/a> has written a post called <a href=\"http:\/\/www.wintellect.com\/Weblogs\/WorkingOfflineWithTFS.aspx\">Working Offline with TFS<\/a>.&nbsp; In it, he describes his approach to using Visual Studio when not connected to the Team Foundation Server.&nbsp; As many of you know, the server information is stored in the .sln file, and VS tries to connect to the server whenever you open a solution that contains the server information in its source control bindings.&nbsp; To make things go more quickly, he wrote a couple of <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/t9883dzc.aspx\">custom MSBuild tasks<\/a> to automate the process of adding and removing the bindings the solution files.&nbsp; While you don&#8217;t have to remove the bindings while you&#8217;re offline, it certainly makes opening the solution quicker when you know you can&#8217;t get to the server.<\/p>\n<p>For synchronizing with the server when he&#8217;s connected again, he wrote an MSBuild task that wraps <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/vstudio\/aa718351.aspx\">tfpt<\/a> to use the online command.&nbsp; The online command will find and pend edits for any files in version control that are writable and don&#8217;t already have a pending edit.&nbsp; Optionally, it will find additions and deletions (and there more options still &#8212; run tfpt online \/help for more information).<\/p>\n<p>He pointed out a bug in tfpt.exe such that there&#8217;s not way to get the online command&#8217;s dialog when standard out is redirected, which was also a bug in tf.exe.&nbsp; It&#8217;s correct that the default is no&nbsp;GUI or other prompting when standard out is redirected, but&nbsp;we&nbsp;had intended to allow a way to get the GUI in that case.&nbsp; I fixed the bug in tfpt.exe to add the \/prompt switch.&nbsp; We had already fixed the Orcas tf.exe a while back.&nbsp; So, the problem with not getting the online command&#8217;s dialog as he describes will be fixed when the updated tfpt.exe is released, so long as you add \/prompt&nbsp;(I don&#8217;t know when, but it&#8217;s not too far off in the future).<\/p>\n<p>[UPDATE 01\/11\/07]&nbsp; I&#8217;ve changed the last paragraph to clarify the bug I described.<\/p>\n<p>tags: <a href=\"http:\/\/technorati.com\/tag\/tfs\" rel=\"tag\">tfs<\/a>, <a href=\"http:\/\/technorati.com\/tag\/team+foundation\" rel=\"tag\">team foundation<\/a>, <a href=\"http:\/\/technorati.com\/tag\/tfpt\" rel=\"tag\">tfpt<\/a>, <a href=\"http:\/\/technorati.com\/tag\/msbuild\" rel=\"tag\">msbuild<\/a>, <a href=\"http:\/\/technorati.com\/tag\/offline\" rel=\"tag\">offline<\/a>, <a href=\"http:\/\/technorati.com\/tag\/version+control\" rel=\"tag\">version control<\/a><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>John Robbins has written a post called Working Offline with TFS.&nbsp; In it, he describes his approach to using Visual Studio when not connected to the Team Foundation Server.&nbsp; As many of you know, the server information is stored in the .sln file, and VS tries to connect to the server whenever you open a [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[6,8],"class_list":["post-2983","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-source-control","tag-team-foundation"],"acf":[],"blog_post_summary":"<p>John Robbins has written a post called Working Offline with TFS.&nbsp; In it, he describes his approach to using Visual Studio when not connected to the Team Foundation Server.&nbsp; As many of you know, the server information is stored in the .sln file, and VS tries to connect to the server whenever you open a [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=2983"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/2983\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=2983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=2983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=2983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}