<?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>TFS Version Control and VS Integration : Offline</title><link>http://blogs.msdn.com/benryan/archive/tags/Offline/default.aspx</link><description>Tags: Offline</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Using TFS 2008 Power Tools to modify server's offline state</title><link>http://blogs.msdn.com/benryan/archive/2008/07/09/using-tfs-2008-power-tools-to-modify-server-s-offline-state.aspx</link><pubDate>Wed, 09 Jul 2008 17:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8712620</guid><dc:creator>benryan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/benryan/comments/8712620.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benryan/commentrss.aspx?PostID=8712620</wfw:commentRss><description>&lt;P&gt;Normally to reset your client's view of a TFS server from Offline to Online, you would 'Go Online' with a solution bound to that server.&amp;nbsp; The server's offline state is reset as part of this operation.&amp;nbsp; If you want to manually mark your server as Online (or Offline), you can modify the Offline and AuoReconnect registry key values mentioned in: &lt;A href="http://blogs.msdn.com/benryan/archive/2007/12/12/when-and-how-does-my-solution-go-offline.aspx"&gt;http://blogs.msdn.com/benryan/archive/2007/12/12/when-and-how-does-my-solution-go-offline.aspx&lt;/A&gt;.&amp;nbsp;&amp;nbsp; I&lt;/P&gt;
&lt;P&gt;f you want to avoid directly modifying the registry, there is now a UI available to update the values.&amp;nbsp; This UI is the &lt;STRONG&gt;'tfpt tweakui'&lt;/STRONG&gt; command found&amp;nbsp;in the Visual Studio Team System 2008 Team Foundation Server Power Tools (available at: &lt;A href="http://msdn.microsoft.com/en-us/tfs2008/bb980963.aspx"&gt;http://msdn.microsoft.com/en-us/tfs2008/bb980963.aspx&lt;/A&gt;).&amp;nbsp; &lt;/P&gt;
&lt;P&gt;To use &lt;STRONG&gt;tweakui&lt;/STRONG&gt; to modify your server's offline state simply select your server in the list view, click the Edit button and set the states of the "&lt;EM&gt;Auto reconnect this server on startup&lt;/EM&gt;" and "&lt;EM&gt;Server is offline&lt;/EM&gt;" checkboxes.&lt;/P&gt;
&lt;P&gt;Manually taking your server offline could be useful if you are pulling your client machine off the network and want to work offline without waiting for&amp;nbsp;a solution to discover its offline state by timing out its server connection attempt.&amp;nbsp; Manually taking your server online has the marginal benefit of having your next attempt to open a solution prompt you during the open to take the solution online as opposed to having to manually choosing the Go Online menu option or toolbar button after the solution has opened.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8712620" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benryan/archive/tags/TFS+2008/default.aspx">TFS 2008</category><category domain="http://blogs.msdn.com/benryan/archive/tags/Offline/default.aspx">Offline</category><category domain="http://blogs.msdn.com/benryan/archive/tags/Power+Tools/default.aspx">Power Tools</category></item><item><title>How to make TFS Offline strictly solution-based</title><link>http://blogs.msdn.com/benryan/archive/2007/12/12/how-to-make-tfs-offline-strictly-solution-based.aspx</link><pubDate>Wed, 12 Dec 2007 21:54:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6749943</guid><dc:creator>benryan</dc:creator><slash:comments>8</slash:comments><comments>http://blogs.msdn.com/benryan/comments/6749943.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benryan/commentrss.aspx?PostID=6749943</wfw:commentRss><description>&lt;P&gt;For some users it may be a bit offputting that taking one solution offline causes all other solutions bound to that same server to go offline&amp;nbsp;when they are opened (assuming no "Go Online" operations in the interim).&amp;nbsp; There is a registry key value that may be specified to tell VS to ignore the server-based Offline setting and to only utilize the per-solution Offline setting.&lt;/P&gt;
&lt;P&gt;To turn off server-based offline support:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Go to the registry&amp;nbsp;(e.g. regedit)&lt;/LI&gt;
&lt;LI&gt;Add a string value named, &lt;STRONG&gt;&lt;EM&gt;IgnoreServerBasedOfflineFlags&lt;/EM&gt;&lt;/STRONG&gt;,&amp;nbsp;under&amp;nbsp;&lt;BR&gt;HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\SourceControl&lt;/LI&gt;
&lt;LI&gt;Set&amp;nbsp;the value to "&lt;EM&gt;True&lt;/EM&gt;".&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;NOTE: My original text for this blog entry had stated that you set the value to "False" in step 3.&amp;nbsp; Obviously, this was incorrect.&amp;nbsp; Sorry for the confusion.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6749943" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benryan/archive/tags/TFS+Version+Control/default.aspx">TFS Version Control</category><category domain="http://blogs.msdn.com/benryan/archive/tags/TFS+2008/default.aspx">TFS 2008</category><category domain="http://blogs.msdn.com/benryan/archive/tags/Offline/default.aspx">Offline</category></item><item><title>When and how does my solution go "offline"?</title><link>http://blogs.msdn.com/benryan/archive/2007/12/12/when-and-how-does-my-solution-go-offline.aspx</link><pubDate>Wed, 12 Dec 2007 21:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6749793</guid><dc:creator>benryan</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.msdn.com/benryan/comments/6749793.aspx</comments><wfw:commentRss>http://blogs.msdn.com/benryan/commentrss.aspx?PostID=6749793</wfw:commentRss><description>&lt;P&gt;TFS 2008 adds improved support for "offline" scenarios.&amp;nbsp; This blog post identifies the scenarios under which a solution will be placed in "offline" mode.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If the Visual Studio IDE is unable to connect to the TFS server when it is &lt;STRONG&gt;&lt;U&gt;opening&lt;/U&gt;&lt;/STRONG&gt; the solution, then it will &lt;STRONG&gt;mark the solution&lt;/STRONG&gt; as being offline.&amp;nbsp; It will also &lt;STRONG&gt;mark the TFS server&lt;/STRONG&gt; as being offline.&lt;BR&gt;&lt;BR&gt;A messagebox will be displayed indicating the solution was taken offline and a message to the same effect will appear in the Output window.&lt;BR&gt;&lt;BR&gt;-OR-&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;If the Visual Studio IDE is opening a solution and finds the TFS server to which the solution is bound is marked as offline, then VS will &lt;STRONG&gt;mark the solution&lt;/STRONG&gt; as being offline&lt;BR&gt;&lt;BR&gt;In this scenario, a message about the solution being opened offline will appear in the Output window, but &lt;STRONG&gt;&lt;U&gt;no messagebox will appear&lt;/U&gt;&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;NOTES&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;Offline detection is done ONLY during solution open&lt;/STRONG&gt;.&amp;nbsp; Failures to connect to the server during other version control operations within VS do &lt;U&gt;not&lt;/U&gt;&amp;nbsp;affect the offline state of the solution or server.&lt;BR&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The offline state for the solution is stored in the solution's local .suo file.&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;When the server is marked offline, we also turn off the server's "AutoReconnect" setting.&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;The server's offline state is stored in a registry value named &lt;EM&gt;&lt;STRONG&gt;Offline,&lt;/STRONG&gt;&lt;/EM&gt; and the AutoReconnect state is stored in in a value named &lt;STRONG&gt;&lt;EM&gt;AutoReconnect&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; Both of these live under the key: &lt;BR&gt;HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\TeamFoundation\Servers\&lt;EM&gt;&amp;lt;tfs server name&amp;gt;&lt;BR&gt;&lt;/EM&gt;&lt;/LI&gt;
&lt;LI&gt;A solution remains offline until it is explicitly taken online.&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;A TFS&amp;nbsp;server remains marked offline until an offline solution bound to that server is taken online.&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Opening a solution that was previously marked offline while its server is still marked offline opens the solution without any messageboxes appearing.&amp;nbsp; We will present a message in the Output window indicating the solution is still offline.&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;Opening a solution that was previously marked offline when its server is marked online&amp;nbsp;presents the user with a messagebox asking if the user wishes to take the solution online.&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6749793" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/benryan/archive/tags/Team+Foundation/default.aspx">Team Foundation</category><category domain="http://blogs.msdn.com/benryan/archive/tags/Integration/default.aspx">Integration</category><category domain="http://blogs.msdn.com/benryan/archive/tags/TFS+Version+Control/default.aspx">TFS Version Control</category><category domain="http://blogs.msdn.com/benryan/archive/tags/TFS+2008/default.aspx">TFS 2008</category><category domain="http://blogs.msdn.com/benryan/archive/tags/Offline/default.aspx">Offline</category></item></channel></rss>