<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Perforce Tips</title>
        <link>http://geekswithblogs.net/dchestnutt/category/4050.aspx</link>
        <description>Perforce Tips</description>
        <language>en-US</language>
        <copyright>Dave Chestnutt</copyright>
        <managingEditor>hlzsfc102@sneakemail.com</managingEditor>
        <generator>Subtext Version 0.0.0.0</generator>
        <item>
            <title>Visual Studio and Perforce: Suppress the Open Connection dialog</title>
            <link>http://geekswithblogs.net/dchestnutt/archive/2006/02/28/70977.aspx</link>
            <description>&lt;DIV&gt;We've used Perforce source control for a number of years.&amp;nbsp; It's a great tool and it integrates with Visual Studio pretty well.&amp;nbsp; But its Visual Studio integration has one really annoying feature, that fortunately,&amp;nbsp;you can work around.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The feature is this: If your solution has 10 projects in it, you can put each of those 10 projects in a separate Perforce Depot.&amp;nbsp; Is that useful?&amp;nbsp; I'll leave that to you.&amp;nbsp; Suffice it to say that we put all our source in one Depot.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The problem comes when you reload a solution.&amp;nbsp; Perforce, by default, wants to prompt you for login information - &lt;STRONG&gt;&lt;EM&gt;&lt;FONT color=#000080&gt;for&amp;nbsp;each project in the solution&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;.&amp;nbsp; We have some solutions with 20-30 projects, so this gets pretty annoying.&amp;nbsp; &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This is the Perforce "Open Connection" screen that pops up over and over again:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG title="The dreaded dialog" src="http://static.flickr.com/40/105982186_5dc7338961.jpg?v=0" border=0&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;Fortunately, you can suppress this dialog (assuming that you only use one Depot!)&amp;nbsp; The option is pretty well hidden, but here's how you get to it.&amp;nbsp; Open Visual Studio, and before you open your solution file, go to &lt;STRONG&gt;Tools - Options&lt;/STRONG&gt;.&amp;nbsp; Select &lt;STRONG&gt;SCC provider&lt;/STRONG&gt; on the left, and click the &lt;STRONG&gt;Advanced&lt;/STRONG&gt; button:&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG title="Tools Options dialog" src="http://static.flickr.com/47/105982187_482854dd92.jpg?v=0" border=0&gt; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This brings up the well-hidden Perforce dialog.&amp;nbsp; Switch to the Connection tab and click the option called: "Bind to the workspace that matches your Perforce environment settings"&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG title="Well Hidden Perforce Settings" src="http://static.flickr.com/50/105982188_b911334004.jpg?v=0" border=0&gt; &amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR&gt;Presto!&amp;nbsp; Press Ok to save your settings, and the Perforce "Open Connection" screen is banished, never to annoy you again.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This makes the Perforce integration fairly practical in Visual Studio.&amp;nbsp; It's not perfect, but it automatically checks out&amp;nbsp;files for you (as you try to change them).&amp;nbsp; And that's extremely useful.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;It just makes my day...&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;p&gt;&lt;a href="http://www.pheedo.com/click.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=70977"&gt;&lt;img src="http://www.pheedo.com/img.phdo?x=6cda6ad746d942b9a1110d0715a4fa12&amp;u=70977" border="0"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;iframe src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;PageID=31016&amp;amp;SiteID=1" width=1 height=1 Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No&gt;
&lt;script language='javascript1.1' src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Browser=NETSCAPE4&amp;amp;NoCache=True&amp;PageID=31016&amp;amp;SiteID=1"&gt;&lt;/script&gt;
&lt;noscript&gt;&lt;a href="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Click&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" target="_blank"&gt;
&lt;img src="http://ads.geekswithblogs.net/a.aspx?ZoneID=5&amp;amp;Task=Get&amp;amp;Mode=HTML&amp;amp;SiteID=1&amp;amp;PageID=31016" width="1" height="1" border="0"  alt=""&gt;&lt;/a&gt;
&lt;/noscript&gt;
&lt;/iframe&gt;
&lt;img src="http://geekswithblogs.net/dchestnutt/aggbug/70977.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Dave Chestnutt</dc:creator>
            <guid>http://geekswithblogs.net/dchestnutt/archive/2006/02/28/70977.aspx</guid>
            <pubDate>Tue, 28 Feb 2006 20:14:00 GMT</pubDate>
            <wfw:comment>http://geekswithblogs.net/dchestnutt/comments/70977.aspx</wfw:comment>
            <comments>http://geekswithblogs.net/dchestnutt/archive/2006/02/28/70977.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://geekswithblogs.net/dchestnutt/comments/commentRss/70977.aspx</wfw:commentRss>
            <trackback:ping>http://geekswithblogs.net/dchestnutt/services/trackbacks/70977.aspx</trackback:ping>
        </item>
    </channel>
</rss>