<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" 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:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Gaute's .net weblog - Visual Studio</title>
    <link>http://gaute.amende.no/</link>
    <description>thoughts on programming and computer related stuff</description>
    <language>en-us</language>
    <copyright>gaute</copyright>
    <lastBuildDate>Fri, 15 Aug 2008 14:17:21 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.1.8102.813</generator>
    <managingEditor>gaute@amende.no</managingEditor>
    <webMaster>gaute@amende.no</webMaster>
    <item>
      <trackback:ping>http://gaute.amende.no/Trackback.aspx?guid=7de7cb6c-9a60-439c-a204-9b3c24076bf4</trackback:ping>
      <pingback:server>http://gaute.amende.no/pingback.aspx</pingback:server>
      <pingback:target>http://gaute.amende.no/PermaLink,guid,7de7cb6c-9a60-439c-a204-9b3c24076bf4.aspx</pingback:target>
      <dc:creator>Gaute Magnussen</dc:creator>
      <wfw:comment>http://gaute.amende.no/CommentView,guid,7de7cb6c-9a60-439c-a204-9b3c24076bf4.aspx</wfw:comment>
      <wfw:commentRss>http://gaute.amende.no/SyndicationService.asmx/GetEntryCommentsRss?guid=7de7cb6c-9a60-439c-a204-9b3c24076bf4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Ever needed to see who has files checked
out? Here's a way to do it command line style.<br />
tf status /user:* $/serverpath /r /s:http://server:8080<br /><br />
An example that works in my environment:<br />
tf status /user:* $/sportsadmin/main /r /s:http://n3srvno04:8080<br /><br />
You do need to open Visual Studio Command Prompt to have the command tf.exe in path.<br /><br /><p></p><img width="0" height="0" src="http://gaute.amende.no/aggbug.ashx?id=7de7cb6c-9a60-439c-a204-9b3c24076bf4" /></body>
      <title>Team Foundation Server, find all checked out files.</title>
      <guid isPermaLink="false">http://gaute.amende.no/PermaLink,guid,7de7cb6c-9a60-439c-a204-9b3c24076bf4.aspx</guid>
      <link>http://gaute.amende.no/TeamFoundationServerFindAllCheckedOutFiles.aspx</link>
      <pubDate>Fri, 15 Aug 2008 14:17:21 GMT</pubDate>
      <description>Ever needed to see who has files checked out? Here's a way to do it command line style.&lt;br&gt;
tf status /user:* $/serverpath /r /s:http://server:8080&lt;br&gt;
&lt;br&gt;
An example that works in my environment:&lt;br&gt;
tf status /user:* $/sportsadmin/main /r /s:http://n3srvno04:8080&lt;br&gt;
&lt;br&gt;
You do need to open Visual Studio Command Prompt to have the command tf.exe in path.&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://gaute.amende.no/aggbug.ashx?id=7de7cb6c-9a60-439c-a204-9b3c24076bf4" /&gt;</description>
      <comments>http://gaute.amende.no/CommentView,guid,7de7cb6c-9a60-439c-a204-9b3c24076bf4.aspx</comments>
      <category>Team Foundation Server</category>
      <category>Visual Studio</category>
    </item>
    <item>
      <trackback:ping>http://gaute.amende.no/Trackback.aspx?guid=efbe9370-54ab-4693-8948-79576d7bb853</trackback:ping>
      <pingback:server>http://gaute.amende.no/pingback.aspx</pingback:server>
      <pingback:target>http://gaute.amende.no/PermaLink,guid,efbe9370-54ab-4693-8948-79576d7bb853.aspx</pingback:target>
      <dc:creator>Gaute Magnussen</dc:creator>
      <wfw:comment>http://gaute.amende.no/CommentView,guid,efbe9370-54ab-4693-8948-79576d7bb853.aspx</wfw:comment>
      <wfw:commentRss>http://gaute.amende.no/SyndicationService.asmx/GetEntryCommentsRss?guid=efbe9370-54ab-4693-8948-79576d7bb853</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">The project I'm currently working on has
a large codebase and it takes a while with precompilation and everything if I press
F5 to start the project every time. I therefore started to attach and detach the debugger
manually every time I needed to debug. This saves me tons of time since I don't have
to log in and out of the application and find the place I need to debug every time
something has to be debugged. A former coworker(<a href="http://www.labraaten.com/">http://www.labraaten.com/</a>)
also made this nice little macro to attach to w3wp.exe(aspnet_wp.exe in XP) automatically.
Saves me even more time.<br /><br /><pre><span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Imports</span> System <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Imports</span> EnvDTE <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Imports</span> EnvDTE80 <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Imports</span> System.Diagnostics <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Public</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Module</span> Module1 <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Public</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Sub</span> Attach_ASPNET_WP()
Attach(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"w3wp.exe"</span>)
Attach(<span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;">"iexplore.exe"</span>) <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">End</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Sub</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Public</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Sub</span> Attach(<span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">ByVal</span> processName <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">As</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">String</span>) <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">For</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Each</span> process <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">As</span> EnvDTE.Process <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">In</span> DTE.Debugger.LocalProcesses <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">If</span> process.Name.IndexOf(processName)
&lt;&gt; -1 <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Then</span> process.Attach() <span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">End</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">If</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Next</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">End</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Sub</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">End</span><span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;">Module<br /><br /></span></span></pre>I have added this macro as a shortcut that triggers every time
I hit ALT-I. This can be set by pressing tools, Options, keyboard, locating your macro
and add the shortcut.<br /><p></p><img width="0" height="0" src="http://gaute.amende.no/aggbug.ashx?id=efbe9370-54ab-4693-8948-79576d7bb853" /></body>
      <title>Visual Studio macro to attach debugger to process</title>
      <guid isPermaLink="false">http://gaute.amende.no/PermaLink,guid,efbe9370-54ab-4693-8948-79576d7bb853.aspx</guid>
      <link>http://gaute.amende.no/VisualStudioMacroToAttachDebuggerToProcess.aspx</link>
      <pubDate>Tue, 12 Aug 2008 13:18:07 GMT</pubDate>
      <description>The project I'm currently working on has a large codebase and it takes a while with precompilation and everything if I press F5 to start the project every time. I therefore started to attach and detach the debugger manually every time I needed to debug. This saves me tons of time since I don't have to log in and out of the application and find the place I need to debug every time something has to be debugged. A former coworker(&lt;a href="http://www.labraaten.com/"&gt;http://www.labraaten.com/&lt;/a&gt;)
also made this nice little macro to attach to w3wp.exe(aspnet_wp.exe in XP) automatically.
Saves me even more time.&lt;br&gt;
&lt;br&gt;
&lt;pre&gt;&lt;span style="color: Black; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Imports&lt;/span&gt; System &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Imports&lt;/span&gt; EnvDTE &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Imports&lt;/span&gt; EnvDTE80 &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Imports&lt;/span&gt; System.Diagnostics &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Public&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Module&lt;/span&gt; Module1 &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Public&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Sub&lt;/span&gt; Attach_ASPNET_WP()
Attach(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"w3wp.exe"&lt;/span&gt;)
Attach(&lt;span style="color: rgb(102, 102, 102); background-color: rgb(228, 228, 228); font-family: Courier New; font-size: 11px;"&gt;"iexplore.exe"&lt;/span&gt;) &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;End&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Sub&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Public&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Sub&lt;/span&gt; Attach(&lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;ByVal&lt;/span&gt; processName &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;As&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;String&lt;/span&gt;) &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;For&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Each&lt;/span&gt; process &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;As&lt;/span&gt; EnvDTE.Process &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;In&lt;/span&gt; DTE.Debugger.LocalProcesses &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;If&lt;/span&gt; process.Name.IndexOf(processName)
&amp;lt;&amp;gt; -1 &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Then&lt;/span&gt; process.Attach() &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;End&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;If&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Next&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;End&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Sub&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;End&lt;/span&gt; &lt;span style="color: Blue; background-color: transparent; font-family: Courier New; font-size: 11px;"&gt;Module&lt;br&gt;
&lt;br&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;I have added this macro as a shortcut that triggers every time
I hit ALT-I. This can be set by pressing tools, Options, keyboard, locating your macro
and add the shortcut.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://gaute.amende.no/aggbug.ashx?id=efbe9370-54ab-4693-8948-79576d7bb853" /&gt;</description>
      <comments>http://gaute.amende.no/CommentView,guid,efbe9370-54ab-4693-8948-79576d7bb853.aspx</comments>
      <category>.NET</category>
      <category>Visual Studio</category>
    </item>
  </channel>
</rss>