<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>David Mohundro - Developer, Architect, Learner, Dad and more - visual-studio tag</title>
        <link>https://mohundro.com/tags/visual-studio</link>
        <description>Posts tagged with visual-studio</description>
        <lastBuildDate>Tue, 31 Mar 2026 00:42:13 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en-us</language>
        <image>
            <title>David Mohundro - Developer, Architect, Learner, Dad and more - visual-studio tag</title>
            <url>https://mohundro.com/static/images/me.jpeg</url>
            <link>https://mohundro.com/tags/visual-studio</link>
        </image>
        <copyright>All rights reserved 2026, David Mohundro</copyright>
        <atom:link href="https://mohundro.com/tags/visual-studio/rss.xml" rel="self" type="application/rss+xml"/>
        <item>
            <title><![CDATA[Converting VIM color schemes to Visual Studio color schemes]]></title>
            <link>https://mohundro.com/blog/2010-03-29-converting-vim-color-schemes-to-visual-studio-color-schemes/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2010-03-29-converting-vim-color-schemes-to-visual-studio-color-schemes/</guid>
            <pubDate>Mon, 29 Mar 2010 00:00:00 GMT</pubDate>
            <description><![CDATA[My favorite text editor right now is vim. As a result, I cannot develop without my (customized) vim key bindings. To get around that when writing .NET code, I...]]></description>
            <content:encoded><![CDATA[<p>My favorite text editor right now is vim. As a result, I cannot develop without
my (customized) vim key bindings. To get around that when writing .NET code, I
use ViEmu when I'm in Visual Studio. However, I still miss the huge variety of
color schemes that are available for vim when I'm in Visual Studio.</p>
<p>A couple of years ago, I finally sat down and <a href="/blog/2008/01/11/my-attempt-at-converting-the-vim-wombat-theme-to-support-visual-studio/">converted by hand the Wombat
theme I was using in vim for Visual
Studio</a>.
At the time, I attempted to write a script to do this conversion process for
me, but it didn't really work out. Well, just over a month ago, I decided to
try again and finally got a script working. Here's some screenshots using the
<a href="http://www.vim.org/scripts/script.php?script_id=2175">Nick Moffitt's version of the railscasts color
theme</a> to give you an
idea of how it works:</p>
<p>VIM:</p>
<p><img src="/static/images/blog/WindowsLiveWriter/ConvertingVIMcolorschemestoVisualStudioc_BA85/image_thumb_3.png" alt="VIM Color Scheme" /></p>
<p>Visual Studio:</p>
<p><img src="/static/images/blog/WindowsLiveWriter/ConvertingVIMcolorschemestoVisualStudioc_BA85/image_thumb_2.png" alt="Visual Studio Color Scheme" /></p>
<p>I left the ReSharper lightbulb icon there so you would believe me :-)</p>
<p>Now, there are differences - the conversion is not perfect and likely won't be
able to be because of differences in how each editor determines things like
identifiers and keywords. Still, I consider it a huge headstart in converting a
color scheme if you're interested in doing this.</p>
<p>For now, the code is a simple ~200 line PowerShell script (with at least 40
lines of comments taken from the vim documentation for reference) so it is
pretty basic. The script also assumes that a starting vssettings file lives
next to the script as a starting point for the conversion. The brains behind
the conversion is a big hash table in the script that maps Visual Studio color
scheme settings to vim color scheme settings.</p>
<p><img src="/static/images/blog/WindowsLiveWriter/ConvertingVIMcolorschemestoVisualStudioc_BA85/image_thumb_4.png" alt="VS to VIM Mapping" /></p>
<p>If you're interested in trying it out or if you'd like to check out the code, I
posted it up on github at
<a href="http://github.com/drmohundro/ColorConverter">http://github.com/drmohundro/ColorConverter</a>.
My long term goal for this would be to add a GUI to the project so that color
schemes could be viewed side by side and allow tweaks to be made before
exporting the final vssettings file. Also, I'm not at all opposed to looking
into converting between other editors besides vim or Visual Studio.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Visual Studio 2010 is big... at least the CTP is...]]></title>
            <link>https://mohundro.com/blog/2008-10-29-visual-studio-2010-is-bigandhellip-at-least-the-ctp-isandhellip/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2008-10-29-visual-studio-2010-is-bigandhellip-at-least-the-ctp-isandhellip/</guid>
            <pubDate>Wed, 29 Oct 2008 00:00:00 GMT</pubDate>
            <description><![CDATA[I decided to download the Visual Studio 2010 and .NET Framework 4.0 CTP tonight. It comes packaged in a virtual machine (not sure if it is Vista or what yet......]]></description>
            <content:encoded><![CDATA[<p>I decided to download the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&amp;displaylang=en">Visual Studio 2010 and .NET Framework 4.0
CTP</a>
tonight. It comes packaged in a virtual machine (not sure if it is Vista or
what yet... I'm going to bed before running it).</p>
<p>And... it is big. Really big.</p>
<p>Pictures are worth a thousand words... in this case, they're worth just over 30
GB.</p>
<p><img src="/static/images/blog/WindowsLiveWriter/VisualStudio2010isbigatleasttheCTPis_13948/image_2.png" alt="Visual Studio 2010 CTP is BIG" /></p>
<p>Wow.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Did you know that the Immediate window in Visual Studio lets you create temporary variables?!?]]></title>
            <link>https://mohundro.com/blog/2008-03-18-did-you-know-that-the-immediate-window-in-visual-studio-lets-you-create-temporary-variables/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2008-03-18-did-you-know-that-the-immediate-window-in-visual-studio-lets-you-create-temporary-variables/</guid>
            <pubDate>Tue, 18 Mar 2008 00:00:00 GMT</pubDate>
            <description><![CDATA[I am a huge fan of the immediate window in Visual Studio. I say forget the watch window - I'd rather use code to check values. In case you didn't know, you can...]]></description>
            <content:encoded><![CDATA[<p>I am a huge fan of the immediate window in Visual Studio. I say forget the
watch window - I'd rather use code to check values. In case you didn't know,
you can get values in the Immediate window by typing "?" and the variable name.
Like so:</p>
<pre><code>? myCoolVar
</code></pre>
<p>You can also execute commands at the immediate window by just typing them. It
is a nice way to change values at debug-time.</p>
<pre><code>myCoolVar = "some other blah"
</code></pre>
<p>What I didn't realize until today is that you can create completely new
variables at the Immediate window as well! Just type in the variable
declaration as you normally would in code. (note that you need the semi-colon
in this case)</p>
<pre><code>string myNewCoolVar = "I'm a brand new variable!";
</code></pre>
<p>Here's a screenshot of this behavior in action:</p>
<p><img src="/static/images/blog/WindowsLiveWriter/DidyouknowthattheImmediatewindowinVisual_A747/image_2.png" alt="Immediate Window" /></p>
<p>Right now, I'm using this behavior while working with a new WPF application.
I've got an IMultiValueConverter and it is a hassle casting my generic array of
objects into types, especially when I'm still deciding on the various bindings
I'd like to pass in. With this, I can just set a breakpoint and use the
Immediate window to play with the code.</p>
<p>This gets me a lot closer to an interactive console (like IRB) with .NET.
Though I can do all of this with IronPython, F#, or IronRuby, it is nice to be
able to do this at debug time from Visual Studio.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[The Remote Debugger from Visual Studio 2008 isn't backwards compatible]]></title>
            <link>https://mohundro.com/blog/2007-12-20-the-remote-debugger-from-visual-studio-2008-isnt-backwards-compatible/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2007-12-20-the-remote-debugger-from-visual-studio-2008-isnt-backwards-compatible/</guid>
            <pubDate>Thu, 20 Dec 2007 00:00:00 GMT</pubDate>
            <description><![CDATA[This is probably a big duh for some of you out there, but if you're running the remote debugger that comes packaged with Visual Studio 2008 (you can find it at...]]></description>
            <content:encoded><![CDATA[<p>This is probably a big duh for some of you out there, but if you're running the
remote debugger that comes packaged with Visual Studio 2008 (you can find it at
<code>C:\program files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger</code>) on a
remote machine and you try to <em>attach</em> to that remote machine using Visual
Studio 2005, you'll get an error. In fact, VS2005 will tell you that it can't
find any servers running on the remote machine. All afternoon yesterday, I was
trying to figure out how this one users' security was wrong and keeping me from
attaching to a remote debugger he was running when, in fact, I just had an
older version of Visual Studio trying to talk to a newer remote debugger.</p>
<p>*sigh*</p>
<p>Maybe now I can figure out what the original problem I was trying to debug was in the first place.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Experiences with Orcas]]></title>
            <link>https://mohundro.com/blog/2007-06-12-experiences-with-orcas/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2007-06-12-experiences-with-orcas/</guid>
            <pubDate>Tue, 12 Jun 2007 00:00:00 GMT</pubDate>
            <description><![CDATA[Last night, I installed the Orcas Beta 1 release. Aside from just a couple of issues, the whole process went quite smoothly. One of the issues I had already...]]></description>
            <content:encoded><![CDATA[<p>Last night, I installed the Orcas Beta 1 release. Aside from just a couple of
issues, the whole process went quite smoothly. One of the issues I had already
seen before involving <a href="/blog/2006/10/09/fun-with-isos-and-vista-rc2/">finding the rmt9x.mst file and mounting
ISOs</a>. My other issue was with
the install speed, but that is when I realized I had mounted the ISO from one
drive just to install to another. As a result, I was completely missing out on
some of the performance that my 10,000 RPM Raptor drive could provide. To
rectify the issue, I mounted the ISO on the drive I was installing to and
everything else was great after that.</p>
<p>I haven't really coded in it yet, but the application itself sure seems
snappier. I'm talking about toolbar menus and the general responsiveness, which
is very nice. Has anyone else noticed an increase in speed for Orcas from 2005?</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Source Outliner]]></title>
            <link>https://mohundro.com/blog/2006-09-19-source-outliner/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-09-19-source-outliner/</guid>
            <pubDate>Tue, 19 Sep 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[Recently, Microsoft released version 3.0 of the Visual Studio 2005 SDK, so I thought I'd download it because I like downloading stuff. Anyway, I thought I'd...]]></description>
            <content:encoded><![CDATA[<p>Recently, Microsoft released <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7e0fdd66-698a-4e6a-b373-bd0642847ab7&amp;DisplayLang=en">version 3.0 of the Visual Studio 2005
SDK</a>,
so I thought I'd download it because I like downloading stuff.</p>
<p>Anyway, I thought I'd share a nifty tool that came along with it under the
Visual Studio SDK Power Toys name (not to be confused with the <a href="http://msdn.microsoft.com/vstudio/downloads/powertoys/default.aspx">Power Toys for
Visual
Studio</a>...
I'm confused, too). Here's a screenshot of Source Outliner:</p>
<p><img src="/static/images/blog/2006-09-19-SourceOutliner.png" alt="Source Outliner" /></p>
<p>It acts sort of like the Class View tool window, except that it outlines the
currently opened file. It also seems a lot cleaner if you happen to be deep in
a namespace hierarchy. Once you have the VS2005 SDK installed, you can access
this tool either by selecting Tools -&gt; Power Toys -&gt; Source Outliner or
by using the CTRL + \ + O hotkey.</p>
<p><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=7e0fdd66-698a-4e6a-b373-bd0642847ab7&amp;DisplayLang=en">Check it out</a>!</p>
<p><strong>UPDATE:</strong> I... uhh... added the link to the download. My mistake on forgetting that :-)</p>
<p><strong>Another update:</strong> Don't bother downloading the entire SDK if you're just
interested in the Visual Studio SDK Power Toys... you can download them
standalone! Check out Aaron Marten's post
<a href="http://blogs.msdn.com/aaronmar/archive/2006/10/27/where-have-all-the-powertoys-gone.aspx">here</a>!</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Designer class not being used by designer]]></title>
            <link>https://mohundro.com/blog/2006-08-22-designer-class-not-being-used-by-designer/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-08-22-designer-class-not-being-used-by-designer/</guid>
            <pubDate>Tue, 22 Aug 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[In one of my projects at work, I ran into a situation where Visual Studio 2005 didn't recognize my designer files (i.e. MainForm.Designer.vb) so all of the...]]></description>
            <content:encoded><![CDATA[<p>In one of my projects at work, I ran into a situation where Visual Studio 2005
didn't recognize my designer files (i.e. MainForm.Designer.vb) so all of the
serialized designer code was getting stuck in a new InitializeComponent in my
code file (i.e. MainForm.vb). Of course, because my Designer code was a partial
class, I got an error out of it. In my experience, this behavior is sort of
obscure, but here is an easy fix.</p>
<p>Open up the project file (which in my case was GUI.vbproj) in a text editor and
do a search for your Designer file. You should see some tags that look like
this:</p>
<pre><code>&lt;Compile Include="CustomControl.Designer.vb"&gt;
&lt;/Compile&gt;
&lt;Compile Include="CustomControl.vb"&gt;
  &lt;SubType&gt;UserControl&lt;/SubType&gt;
&lt;/Compile&gt;
</code></pre>
<p>Now, what it SHOULD look like is this:</p>
<pre><code>&lt;Compile Include="CustomControl.Designer.vb"&gt;
  &lt;DependentUpon&gt;CustomControl.vb&lt;/DependentUpon&gt;
&lt;/Compile&gt;
&lt;Compile Include="CustomControl.vb"&gt;
  &lt;SubType&gt;UserControl&lt;/SubType&gt;
&lt;/Compile&gt;
</code></pre>
<p>Basically, my project file, for whatever reason, was missing the
&lt;DependentUpon&gt; tag. If you add that back, Visual Studio should start
behaving as expected again.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Fun with DesignMode (and why it wasn't Visual Studio's fault)]]></title>
            <link>https://mohundro.com/blog/2006-07-20-fun-with-designmode-and-why-it-wasnt-visual-studios-fault/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-07-20-fun-with-designmode-and-why-it-wasnt-visual-studios-fault/</guid>
            <pubDate>Thu, 20 Jul 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[Like many other users of Visual Studio 2005, I've occasionally received the WSoD (White Screen of Death) while using the designer. And like a typical user, I...]]></description>
            <content:encoded><![CDATA[<p>Like many other users of Visual Studio 2005, I've occasionally received the
WSoD (White Screen of Death) while using the designer. And like a typical user,
I blamed it on Visual Studio. That's what users do, right? They blame the
program, because the user is always right. The same behavior that frustrates me
to no end when users enter invalid data into MY program and then blame MY
program (of course, if my UI were better, it wouldn't be as difficult to use,
but that is another story). Anyway, my frustrations with VS2005 crashing and
the WSoD's were in fact a problem with the user - me.</p>
<p>In one of my forms, I had some background threading work that was started when
the form loaded. Like a good programmer, I had wrapped this threading work in a
check against Me.DesignMode to ensure that it wouldn't try to do this work
while in the designer. What I didn't know at the time is that the DesignMode
property isn't set until AFTER the constructor fires. I checked around with
some guys at work and I discovered that I wasn't the first one to discover
this. They had already put a check against Application.ExecutablePath to see if
it was devenv.exe. If it is, then we're in DesignMode. Simple as that!</p>
<p>So, all of my VS crashes and weird WSoD's have now been tracked back to my OWN
code. HOWEVER, I would like to say that it would have been nice if Visual
Studio had given me a better message to inform me that my designer code was
trying to run background threads or something - in much the same way that my
own code should work better and give my users better messages.</p>
<p>Ah, the joys of user interaction.</p>
<p><strong>Note:</strong> This fixed the problem suggested after sending error reports that
link to this hotfix
(<a href="http://support.microsoft.com/?kbid=915038">http://support.microsoft.com/?kbid=915038</a>).
If you're running into this, check and double-check the code in your UI
constructors, INCLUDING base class constructors!</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Finding the appropriate exception to throw...]]></title>
            <link>https://mohundro.com/blog/2006-05-11-finding-the-appropriate-exception-to-throw/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-05-11-finding-the-appropriate-exception-to-throw/</guid>
            <pubDate>Thu, 11 May 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[Prompted primarily by Karl Sequin's excellent "Understanding and Using Exceptions" post, I was recently attempting to clean up some of the generic exceptions...]]></description>
            <content:encoded><![CDATA[<p>Prompted primarily by <a href="http://codebetter.com/blogs/karlseguin/default.aspx">Karl
Sequin</a>'s excellent
<a href="http://codebetter.com/blogs/karlseguin/archive/2006/04/05/142355.aspx">"Understanding and Using Exceptions"
post</a>, I
was recently attempting to clean up some of the generic exceptions being throw
in some code and I was having trouble deciding which exception to use.</p>
<p>I had a BackgroundWorker that could potentially throw an exception (can't
everything?) that was doing some remoting to another process. As additional
information, the BackgroundWorker exposes any exceptions that might occur in
the Error property off of the RunWorkerCompletedEventArgs. I didn't want to
just throw e.Error because, as Karl points out, this modifies the call stack
making it look my code was the source of the exception. At the same time, I
couldn't just use throw, because the exception had basically already been
caught and been given to me to handle.</p>
<p>I ended up pulling up the Object Browser in Visual Studio and filtered the list
down by searching on "exception" - a nice trick to see all currently accessible
exceptions. I ended up using the System.Runtime.Remoting.RemotingException,
because it described exactly what I was looking at. Here's the description for
it:</p>
<blockquote>
<p>Public Class RemotingException&lt;br /&gt;
Inherits System.SystemException&lt;br /&gt;
Member of: System.Runtime.Remoting&lt;br /&gt;
Summary:&lt;br /&gt;
The exception that is thrown when something has gone wrong during remoting.</p>
</blockquote>
<p>If you exclude the "during remoting" part, it basically describes any exception
that can be thrown. It's almost funny in a way, because that's exactly the type
of thing I was looking for. I was able to set the InnerException to my e.Error
which provided me with all the information I needed.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Setting up VS2005 environment in PowerShell]]></title>
            <link>https://mohundro.com/blog/2006-05-05-setting-up-vs2005-environment-in-powershell/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-05-05-setting-up-vs2005-environment-in-powershell/</guid>
            <pubDate>Fri, 05 May 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[Many thanks to Robert W. Anderson for this solution. In his post VS2005 PowerShell Prompt, Robert details how to create your PowerShell profile script which...]]></description>
            <content:encoded><![CDATA[<p>Many thanks to <a href="http://et.cairene.net/">Robert W. Anderson</a> for this solution.</p>
<p>In his post <a href="http://et.cairene.net/2006/05/02/vs2005-powershell-prompt/">VS2005 PowerShell
Prompt</a>, Robert
details how to create your PowerShell profile script which will add the VS2005
environment variables to the PowerShell process. Quite nifty.</p>
<p>As a note, after setting this up, you may get a message about how your script
isn't signed so it won't run. One solution is to run <code>Set-ExecutionPolicy RemoteSigned</code>. I wouldn't recommend going farther than that, though. It will
allow local scripts to run unsigned and will warn you if a script that was
downloaded tries to run. There are still vulnerabilities, so be careful. The
other alternative is to sign your script.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Class Designer and working with a team]]></title>
            <link>https://mohundro.com/blog/2006-05-01-class-designer-and-working-with-a-team/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-05-01-class-designer-and-working-with-a-team/</guid>
            <pubDate>Mon, 01 May 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[I wanted to share an experience I had last week while working with my development team. I think I've mentioned this before, but we're the first group in my...]]></description>
            <content:encoded><![CDATA[<p>I wanted to share an experience I had last week while working with my
development team. I think I've mentioned this before, but we're the first group
in my company to move to .NET 2.0. As a result, we're also the first to get to
really use Visual Studio 2005. We had been working on mockups and UI designs
with our users for quite a while on this project.</p>
<p>Finally, we were getting ready to start work on the internals. The three of us
met in a conference room with a projector and I pulled up the Class Designer in
Visual Studio. I've done team-coding a few times before, where one person is
typing while everyone else is yelling out bugs or typos. While the process can
be annoying, it also tends to produce less-buggy code. Doing the same thing
with the Class Designer worked out really well. It helped us visualize how
everything would tie together. We were drawing out our code, but behind the
scenes, the Class Designer was also spitting out workable code!</p>
<p>I don't think I could use the Class Designer in all cases, but it really does
force you to think about design issues and it makes for a good team development
product. It also helps ease developers who aren't as comfortable with OO
concepts see how inheritance is working. Give it a try and let me know how it
works for you.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA["The designer loader did not provide a root component but has not indicated why."]]></title>
            <link>https://mohundro.com/blog/2006-04-14-the-designer-loader-did-not-provide-a-root-component-but-has-not-indicated-why/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-04-14-the-designer-loader-did-not-provide-a-root-component-but-has-not-indicated-why/</guid>
            <pubDate>Fri, 14 Apr 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[Ever seen this error in Visual Studio 2005? I've seen it all too often and it is really annoying. However, I did find a possible fix today. I was working in a...]]></description>
            <content:encoded><![CDATA[<p>Ever seen this error in Visual Studio 2005?</p>
<p><img src="/static/images/blog/2006-04-14-designer-error.gif" alt="Designer Error" /></p>
<p>I've seen it all too often and it is really annoying.</p>
<p>However, I did find a possible fix today. I was working in a project that had
multiple assembly references. One of the references was using a 1.1 assembly,
so it came along for the ride. By simply removing that reference, I was able to
view my form without any problems. If I tried to add the reference back, I
would get the designer error again. I reworked the assembly being referenced to
not use any 1.1 components and... lo and behold... the designer errors stopped.</p>
<p>Is this just a really random bug or is this a subtle way to push people to
migrate to .NET 2.0?</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Tracepoints!!!]]></title>
            <link>https://mohundro.com/blog/2006-03-17-tracepoints/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-03-17-tracepoints/</guid>
            <pubDate>Fri, 17 Mar 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[First thing - jfo's coding is a great blog. I regularly find her posts very helpful and relevant to what I'm working on. If you're not already reading her...]]></description>
            <content:encoded><![CDATA[<p>First thing - <a href="http://blogs.msdn.com/jfoscoding/">jfo's coding</a> is a great
blog. I regularly find her posts very helpful and relevant to what I'm working
on. If you're not already reading her blog, you should check it out.</p>
<p>Second, as she says, <a href="http://blogs.msdn.com/jfoscoding/archive/2006/03/16/553420.aspx">tracepoints ARE
awesome</a>. I
had used a few of the new breakpoint features in VS2005 such as Condition and
Hit Count, but I seen the "When Hit..." option yet. All I can say is, you can
say goodbye to Debug.WriteLine'ing (aka "the poor man's debugger"<strong>*</strong>).</p>
<p><strong>*</strong> If you're unfamiliar with "the poor man's debugger," it is basically
using output statements to determine values and flow of code. If used
correctly, it can actually be very useful. It just isn't fun to remove all of
that code after you're done debugging (particularly the Response.Write variety
in webpages... ouch).</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[65% of my time in Garbage Collection?!?]]></title>
            <link>https://mohundro.com/blog/2006-03-16-65-of-my-time-in-garbage-collection/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-03-16-65-of-my-time-in-garbage-collection/</guid>
            <pubDate>Thu, 16 Mar 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[A few days ago, I was working in Visual Studio 2005 and I was getting awful performance out of it. I decided to pull up Process Explorer to see if I could...]]></description>
            <content:encoded><![CDATA[<p>A few days ago, I was working in Visual Studio 2005 and I was getting awful
performance out of it. I decided to pull up <a href="http://www.sysinternals.com/Utilities/ProcessExplorer.html">Process
Explorer</a> to see if
I could determine where the problem was. I right-clicked on devenv.exe and
pulled up its properties and went to the .NET tab. You can then use the combo
box to select different .NET performance measures. Here's what I found:</p>
<p><img src="/static/images/blog/2005-03-16-devenv.png" alt="Visual Studio Screenshot" /></p>
<p>As you can see with my hastily scribbled red circle and arrow, I'm attempting
to draw your attention to the 65.94 number. It is telling me that devenv.exe
was spending about 66% of its time in doing garbage collection.</p>
<p>WHAT?!? 66%? That explains why my process was barely responding to me, but it
doesn't tell me why it was doing that. I will say that I had a code file up
that was about 7000 lines long, but I would still expect it to be able to
handle that. Maybe I'm wrong, though. Since then, I've significantly cut that
file down in size and I haven't run into that issue again, but it was pretty
weird.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Question regarding highlighting "User Types" in Visual Studio 2005]]></title>
            <link>https://mohundro.com/blog/2006-01-18-question-regarding-highlighting-user-types-in-visual-studio-2005/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-01-18-question-regarding-highlighting-user-types-in-visual-studio-2005/</guid>
            <pubDate>Wed, 18 Jan 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[I was curious if anyone knew if Visual Studio 2005 had the capability to highlight or color "User Types" (i.e. classes you write yourself) while coding in...]]></description>
            <content:encoded><![CDATA[<p>I was curious if anyone knew if Visual Studio 2005 had the capability to
highlight or color "User Types" (i.e. classes you write yourself) while coding
in Visual Basic. I know that C# has this functionality built in, but it doesn't
seem like VB pays any heed to those settings. Here's a screenshot of the
specific setting in Visual Studio:</p>
<p><img src="/static/images/blog/2006-01-18_0001.jpg" alt="C# User Types Dialog" /></p>
<p>If anyone knows anything about getting that working for VB, I'd appreciate it.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[More information on yesterday's VS2005 bug]]></title>
            <link>https://mohundro.com/blog/2006-01-12-more-information-on-yesterdays-vs2005-bug/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-01-12-more-information-on-yesterdays-vs2005-bug/</guid>
            <pubDate>Thu, 12 Jan 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[After some severe frustration research, I was able to discover how to repro the crash in Visual Studio 2005 yesterday. It is actually quite simple to do. You...]]></description>
            <content:encoded><![CDATA[<p>After some ~severe frustration~ research, I was able to discover
how to repro the crash in Visual Studio 2005 yesterday. It is actually quite
simple to do. You need a new VB.NET project and two With statements, one nested
within the other. That's it. Then you click on the second With object.</p>
<p>Here, I'll show you how!</p>
<pre><code>Public Class Form1
  Public Shared Sub Main()
    Application.Run(New Form1)
  End Sub

  Public Sub New()
    ' This call is required by the Windows Form Designer.
    InitializeComponent()
    ' Add any initialization after the InitializeComponent() call.
    Dim p As New Person()
    With p
      ' CRASHHERE: If you want to crash, take your mouse and
      ' click inside .StreetAddress.... BOOM!
      With .StreetAddress
        .Street = "123 BOOM"
      End With
    End With
  End Sub

  Public Class Person
    Private _streetAddress As New Address
    Public ReadOnly Property StreetAddress() As Address
      Get
        Return _streetAddress
      End Get
    End Property
  End Class

  Public Class Address
    Private _street As String
    Public Property Street() As String
      Get
        Return _street
      End Get
      Set(ByVal value As String)
        _street = value
      End Set
    End Property
  End Class
End Class
</code></pre>
<p>There, that was easy, huh? (In case you're not seeing it, look for the CRASHHERE note.)</p>
<p>Kids, don't try this at home.</p>
<p>Chances are, it will work for you anyway. I just checked with one of my
co-workers and it works just fine for him. Great.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[I really like Visual Studio 2005 but...]]></title>
            <link>https://mohundro.com/blog/2006-01-11-i-really-like-visual-studio-2005-but/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-01-11-i-really-like-visual-studio-2005-but/</guid>
            <pubDate>Wed, 11 Jan 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[5+ crashes in a row is a little much. And I wasn't even in the designer. And yes, I rebooted. It still happened. I don't know exactly what I did to fix it,...]]></description>
            <content:encoded><![CDATA[<p>5+ crashes in a row is a little much.</p>
<p>And I wasn't even in the designer. And yes, I rebooted. It still happened.</p>
<p>I don't know exactly what I did to fix it, though. Let's just say heavy use of
the save button and having another instance of devenv up and attached to the
other process. Just in case I needed to copy and paste a call stack somewhere.
Of course, that's when it began working.</p>
<p>Oh well.</p>
<p><strong>NOTE</strong>: Don't take this the wrong way. I still love VS2005 as an IDE.
However, it still has quite a few issues. The most annoying of which is the
flickering while in the designer. And no, I never got that one up in the
debugger either.</p>
<p><strong>UPDATE</strong>: For more information on this, see my new post <a href="/blog/2006/01/12/more-information-on-yesterdays-vs2005-bug/">here</a>.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[FileHelpers]]></title>
            <link>https://mohundro.com/blog/2006-01-05-filehelpers/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-01-05-filehelpers/</guid>
            <pubDate>Thu, 05 Jan 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[By way of Larkware, I came across the FileHelpers library written by Marcos Meli. It looks like a great solution for dealing with delimited or fixed length...]]></description>
            <content:encoded><![CDATA[<p>By way of <a href="http://www.larkware.com/dg4/TheDailyGrind791.html">Larkware</a>, I came
across the <a href="http://filehelpers.sourceforge.net/">FileHelpers</a> library written
by Marcos Meli. It looks like a great solution for dealing with delimited or
fixed length file formats. The majority of the output formats from our backend
systems at work are fixed length file formats, which can be a pain to parse. I
had actually written a library to parse them and reference portions of each
line by name (sort of a named index to portions of a line), but this looks like
a much cleaner approach. I'll dig into this some more and post my thoughts on
it.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA[Clean Solution]]></title>
            <link>https://mohundro.com/blog/2006-01-04-clean-solution/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-01-04-clean-solution/</guid>
            <pubDate>Wed, 04 Jan 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[Has anyone noticed a new menu item under the Build menu in Visual Studio 2005? There is a Clean Solution item that will remove all of the compiled binaries...]]></description>
            <content:encoded><![CDATA[<p>Has anyone noticed a new menu item under the Build menu in Visual Studio 2005? There is a Clean Solution item that will
remove all of the compiled binaries that live under your bin folder. It is relatively similar
to <a href="http://www.codinghorror.com/blog/archives/000368.html">Clean Sources Plus</a>, except that it keeps the folders.</p>
<p>Note: I'm not sure if it shows up in every VS configuration. I'm using the default view (see Tools -&gt; Import and Export Settings).</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
        <item>
            <title><![CDATA["Tools.InstallCommunityControls" is not valid...]]></title>
            <link>https://mohundro.com/blog/2006-01-04-toolsinstallcommunitycontrols-is-not-valid/</link>
            <guid isPermaLink="false">https://mohundro.com/blog/2006-01-04-toolsinstallcommunitycontrols-is-not-valid/</guid>
            <pubDate>Wed, 04 Jan 2006 00:00:00 GMT</pubDate>
            <description><![CDATA[I ran into that error today while attempting to install Infragistics NetAdvantage 2005. I'm not exactly sure about why the error occurred, but I was able to...]]></description>
            <content:encoded><![CDATA[<p>I ran into that error today while attempting to install Infragistics
NetAdvantage 2005. I'm not exactly sure about why the error occurred, but I was
able to find a fix <a href="http://blogs.msdn.com/chetanc/default.aspx">here</a> (via
<a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PageIndex=1&amp;SiteID=1&amp;PostID=124977">this</a>
MSDN forum thread). Some of the other solutions appear to be reinstalling
VS2005, but luckily, the registry fixes from Chetan's blog worked fine.</p>
]]></content:encoded>
            <author>david@mohundro.com (David Mohundro)</author>
        </item>
    </channel>
</rss>