<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Makiwa &#187; Visual Studio</title>
	<link>http://www.makiwa.com</link>
	<description>Stuart Campbell's occasional musings about software development, etc.</description>
	<pubDate>Thu, 08 May 2008 11:04:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
	<language>en</language>
			<item>
		<title>Consolas: try a new font for Visual Studio</title>
		<link>http://www.makiwa.com/index.php/2008/04/26/consolas-a-new-font-for-visual-studio/</link>
		<comments>http://www.makiwa.com/index.php/2008/04/26/consolas-a-new-font-for-visual-studio/#comments</comments>
		<pubDate>Sat, 26 Apr 2008 22:58:48 +0000</pubDate>
		<dc:creator>Stu</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.makiwa.com/index.php/2008/04/26/consolas-a-new-font-for-visual-studio/</guid>
		<description><![CDATA[I&#8217;ve just downloaded a new font for Visual Studio. It&#8217;s called Consolas and I think I like it. You can get it here.
According to the blurb:
Consolas is intended for use in programming environments and other circumstances where a monospaced font is specified. All characters have the same width, like old typewriters, making it a good [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just downloaded a new font for Visual Studio. It&#8217;s called Consolas and I think I like it. You can <a href="http://www.microsoft.com/downloads/details.aspx?familyid=22E69AE4-7E40-4807-8A86-B3D36FAB68D3&amp;displaylang=en" target="_blank">get it here</a>.</p>
<p>According to the blurb:</p>
<blockquote><p>Consolas is intended for use in programming environments and other circumstances where a monospaced font is specified. All characters have the same width, like old typewriters, making it a good choice for personal and business correspondence. Optimizing the font specifically for ClearType allowed a design with proportions closer to normal text than traditional monospaced fonts like Courier. This allows for more comfortable reading of extended text on-screen.</p>
</blockquote>
<p>And it does what it says on the tin. I also like the fact that it is more compact so you can fit more code on the screen.</p>
<p>Here is trusty old Courier New 10pt:</p>
<p>&nbsp;<img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="294" alt="Courier New" src="http://www.makiwa.com/wp-content/uploads/2008/04/image2.png" width="414" border="0"></p>
<p>And here is the same text in Consolas 10pt :</p>
<p><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="294" alt="Consolas" src="http://www.makiwa.com/wp-content/uploads/2008/04/image3.png" width="414" border="0"></p>
]]></content:encoded>
			<wfw:commentRss>http://www.makiwa.com/index.php/2008/04/26/consolas-a-new-font-for-visual-studio/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Editing a project file as XML</title>
		<link>http://www.makiwa.com/index.php/2008/02/08/editing-a-project-file-as-xml/</link>
		<comments>http://www.makiwa.com/index.php/2008/02/08/editing-a-project-file-as-xml/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 17:27:37 +0000</pubDate>
		<dc:creator>Stu</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.makiwa.com/index.php/2008/02/08/editing-a-project-file-as-xml/</guid>
		<description><![CDATA[I sometimes need to edit a *.csproj file as XML. However, there isn&#8217;t an option for doing so in Visual Studio. Or so I thought.
I often end up opening the *.csproj as a text file from explorer, but then of course, I lose all the Intellisense goodness.
Perhaps I&#8217;m slow but it wasn&#8217;t until today that [...]]]></description>
			<content:encoded><![CDATA[<p>I sometimes need to edit a *.csproj file as XML. However, there isn&#8217;t an option for doing so in Visual Studio. Or so I thought.</p>
<p>I often end up opening the *.csproj as a text file from explorer, but then of course, I lose all the Intellisense goodness.</p>
<p>Perhaps I&#8217;m slow but it wasn&#8217;t until today that found out how to do it in Visual Studio:</p>
<ol>
<li>Simply right-click the project and choose &quot;Unload Project&quot;.</li>
<li>Right-click the &quot;unavailable project&quot; and choose &quot;Edit {project filename}&quot;</li>
</ol>
<p><img style="margin: 0px 0px 0px 30px" height="208" alt="image" src="http://www.makiwa.com/wp-content/uploads/2008/02/image.png" width="285" /> </p>
<p>Once you&#8217;ve done that you get the joys of syntax highlighting and Intellisense.</p>
<p><img height="309" alt="image" src="http://www.makiwa.com/wp-content/uploads/2008/02/image1.png" width="246" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.makiwa.com/index.php/2008/02/08/editing-a-project-file-as-xml/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Error uninstalling VS 2008 Beta 2</title>
		<link>http://www.makiwa.com/index.php/2007/11/25/error-uninstalling-vs-2008-beta-2/</link>
		<comments>http://www.makiwa.com/index.php/2007/11/25/error-uninstalling-vs-2008-beta-2/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 21:44:46 +0000</pubDate>
		<dc:creator>Stu</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Software]]></category>

		<category><![CDATA[Vista]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.makiwa.com/index.php/2007/11/25/error-uninstalling-vs-2008-beta-2/</guid>
		<description><![CDATA[I&#8217;ve just had a bit of a pain uninstalling Visual Studio 2008 Beta 2 on Vista. I followed Scott Guthrie&#8217;s steps for uninstalling it, but when I tried to uninstall VS 2008 itself I got the following error:
Error 1325.&#8217;WebDesignerCore&#8217; is not a valid short file name.

 
Needless to say, a brief episode of profanity ensued. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just had a bit of a pain uninstalling Visual Studio 2008 Beta 2 on Vista. I followed <a href="http://weblogs.asp.net/scottgu/archive/2007/11/20/steps-to-uninstall-vs-2008-beta2-before-installing-the-vs-2008-final-release.aspx" target="_blank">Scott Guthrie&#8217;s steps for uninstalling it</a>, but when I tried to uninstall VS 2008 itself I got the following error:</p>
<blockquote><p>Error 1325.&#8217;WebDesignerCore&#8217; is not a valid short file name.</p>
</blockquote>
<p><font color="#777777"><a href="http://www.makiwa.com/wp-content/uploads/2007/11/vs2008beta2-uninstall-error.png"><img id="id" style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="156" alt="vs2008beta2-uninstall-error" src="http://www.makiwa.com/wp-content/uploads/2007/11/vs2008beta2-uninstall-error_thumb.png" width="381" border="0" /></a> </font></p>
<p>Needless to say, a brief episode of profanity ensued. But fear not: after a bit of googling and struggling, I managed to sort it out. Hopefully, if you are having the same problem then this will help you.</p>
<ol>
<li>Open your temp folder. The easiest way is to hit Windows+R and type &quot;%temp%&quot; and hit OK.      <br /><a href="http://www.makiwa.com/wp-content/uploads/2007/11/image.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; margin: 10px 0px 15px; border-right-width: 0px" height="126" alt="image" src="http://www.makiwa.com/wp-content/uploads/2007/11/image_thumb.png" width="244" border="0" /></a> </li>
<li>In that folder look for files matching VSMsiLog*.txt. You are looking for the log file that was created when you installed VS2008 Beta 2. Check the Date Modified field if there are several - although I imagine there should only be one of these at this point. Open it in WordPad (Notepad seems to struggle with the size of this file - mine was 47 MB). </li>
<li>Search through the file for the term &quot;WebDesignerCore&quot; until you find a match that looks like a file path. In my case it was:<br />
<blockquote>
<p align="left"><font face="Courier New" size="2">MSI (s) (7C:48) [07:38:56:490]: PROPERTY CHANGE: Adding wcu_VWD.3643236F_FC70_11D3_A536_0090278A1BB8 property. Its value is <strong><em>&#8216;K:\WCU\WebDesignerCore\&#8217;</em></strong>.</font></p>
</blockquote>
<p> The VS uninstall script is looking here so if doesn&#8217;t exist it will fail. In my case it didn&#8217;t exist because K was the drive letter I used when I mounted the VS 2008 Beta 2 ISO image for installation and I had since unmounted it. </li>
<li>Put the original VS 2008 Beta 2 setup media in place so that that path exists. In my case I had to mount the ISO image (using <a href="http://www.daemon-tools.cc/dtcc/download.php?mode=ViewCategory&amp;catid=5" target="_blank">Daemon Tools</a>) and change the drive letter to K. </li>
<li>Now uninstall Visual Studio 2008 Beta 2! </li>
</ol>
<p>Good luck! <img src='http://www.makiwa.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.makiwa.com/index.php/2007/11/25/error-uninstalling-vs-2008-beta-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Visual Studio and the Evil Unit Test Wizard</title>
		<link>http://www.makiwa.com/index.php/2006/07/16/visual-studio-and-the-evil-unit-test-wizard/</link>
		<comments>http://www.makiwa.com/index.php/2006/07/16/visual-studio-and-the-evil-unit-test-wizard/#comments</comments>
		<pubDate>Sun, 16 Jul 2006 22:44:44 +0000</pubDate>
		<dc:creator>Stu</dc:creator>
		
		<category><![CDATA[Agile Development]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Extreme Programming]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.makiwa.com/index.php/2006/07/16/visual-studio-and-the-evil-unit-test-wizard/</guid>
		<description><![CDATA[I fancy a bit of rant. And today&#8217;s punchbag is Visual Studio&#8217;s Unit Test Wizard.

&#60;rant&#62;
It is evil and it should be dropped from the product.
My previous company outsourced the development of a software project and I ended up reviewing the code from the first iteration. I had concerns about some of the code; one concern [...]]]></description>
			<content:encoded><![CDATA[<p>I fancy a bit of rant. And today&#8217;s punchbag is Visual Studio&#8217;s Unit Test Wizard.<br />
<div style="font-family:Courier New; white-space:pre-wrap;"><br />
&lt;rant&gt;<br /></div><br />
It is evil and it should be dropped from the product.</p>
<p>My previous company outsourced the development of a software project and I ended up reviewing the code from the first iteration. I had concerns about some of the code; one concern was that they had used Visual Studio&#8217;s Unit Test Wizard to auto-generate their unit tests.</p>
<p>There areÂ three main reasons I dislike this feature.</p>
<ol>
<li><strong>Discourages test-driven development</strong><br />
There is a growing consensus that test-driven development results in better tests, better code coverage, higher quality code, and more productive development. Visual Studio&#8217;s auto-generation of test methods discourages such a test-driven approach, as it requires the code to have been written before the tests are generated.</li>
<li><strong>Causes method-centric tests</strong><br />
Auto-generation of test methods results in tests that are <em>method-centric</em> rather than <em>requirement-centric</em>. The issue with auto-generated, method-centric tests is that a) they don&#8217;t have descriptive names, and b) they promote the belief that if you write a test that calls that method then it is &#8220;covered&#8221; - regardless of how many branches there are in the logic of the method.</li>
<li><strong>Creates homogenous tests</strong><br />
I believe that the unit tests shouldÂ be a collection of &#8220;little stories&#8221; that describe the system. But auto-generated tests all look the same. They don&#8217;t give you a good feel for what a system does because each one is just the setup for a method call and the evaluation of the result. To paraphrase Groove Armada, if every test looks the same, you get tired of looking at them!</li>
<li><strong>Causes test fatigue and weak tests</strong><br />
This is perhaps the biggest problem with the tool and it results from not using a test-driven approach. Once Visual Studio has kindly generated, say, 50 test method stubs, the developer is faced with the task of &#8220;filling them all in&#8221;. In my opinion, these tests are likely to be weak. Not only because the developer is temporally disconnected from the spirit and nuances of the various underlying requirements than he would have been with a test-first approach. But he now has a mammoth task ahead of him. By the time he hits test #15 he is going to be suffering from &#8220;test fatigue&#8221; and is very likely to start compromising on test quality to just get it over and done with.
</li>
</ol>
<p>I&#8217;m not saying that ALL unit tests developed with this wizard are necessarily flawed. I&#8217;m just saying that it <em>increases the liklihood of poor quality tests</em>. And poor quality tests are perhaps more dangerous than no tests&#8230;&#8221;I ran the Unit Test Wizard, filled in the blanks, did some refactoring. Whadya know! All the tests pass&#8230;RELEASE IT!</p>
<p>I&#8217;d like to consign this feature to the dustbin.<br />
<div style="font-family:Courier New; white-space:pre-wrap;"><br />
&lt;/rant&gt;<br /></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.makiwa.com/index.php/2006/07/16/visual-studio-and-the-evil-unit-test-wizard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NUnit and Visual Studio 2005 Beta 2</title>
		<link>http://www.makiwa.com/index.php/2005/08/11/nunit-and-visual-studio-2005-beta-2/</link>
		<comments>http://www.makiwa.com/index.php/2005/08/11/nunit-and-visual-studio-2005-beta-2/#comments</comments>
		<pubDate>Thu, 11 Aug 2005 14:27:13 +0000</pubDate>
		<dc:creator>Stu</dc:creator>
		
		<category><![CDATA[Agile Development]]></category>

		<category><![CDATA[Development]]></category>

		<category><![CDATA[Extreme Programming]]></category>

		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.makiwa.com/?p=31</guid>
		<description><![CDATA[I was struggling to get NUnit 2.2 to work with a VS2005 Beta 2 project. I kept getting a BadImageFormatException when I tried to launch NUnit-GUI.exe.
The solution was to add the following line to the &#60;startup&#62; tag of nunit-gui.exe.config (and nunit-console.exe.config if you are using it from the command line):
&#60;supportedRuntime version=&#8221;v2.0.50215&#8221; /&#62;
EDIT: For the final [...]]]></description>
			<content:encoded><![CDATA[<p>I was struggling to get <a href="http://www.nunit.org">NUnit</a> 2.2 to work with a VS2005 Beta 2 project. I kept getting a BadImageFormatException when I tried to launch NUnit-GUI.exe.</p>
<p>The solution was to add the following line to the &lt;startup&gt; tag of nunit-gui.exe.config (and nunit-console.exe.config if you are using it from the command line):</p>
<div style="font-family: Courier New">&lt;supportedRuntime <span class="mcsh_red;">version</span><span class="mcsh_red;" />=&#8221;<span class="mcsh_blue">v2.0.50215</span>&#8221; /&gt;</div>
<p><strong>EDIT:</strong> For the final release of Visual StudioÂ 2005 you would of course use:</p>
<div style="font-family: Courier New">&lt;supportedRuntime <span class="mcsh_red;">version</span><span class="mcsh_red;" />=&#8221;<span class="mcsh_blue">v2.0.50727</span>&#8221; /&gt;</div>
<p>You may need to comment out all the other <em>supportedRuntime</em> entries to get it to work.</p>
<p>Having got NUnit to test a .NET v2.0 assembly, my next task was to get it working as the debug harness for my class library projects <a href="http://www.makiwa.com/index.php/2005/08/02/test-driving-class-libraries-with-nunit-and-visual-studio-2003/">like I did with Visual Studio 2003</a>.</p>
<p>I was quite hopeful. I did everything as I had done for my VS 2003 projectsâ€¦but no - they NUnit and VS2005 did not want to play nicely together! When I ran the project, NUnit did launch, but when I clicked â€œRunâ€ nothing happened.</p>
<p>I spend a couple of hours trying to get it to work but to no avail. Eventually, out of desperation I downloaded the latest iteration build of NUnit (version 2.2.2 as of this writing). I set the 2.2.2 version of nunit-console.exe to be the startup program (remembering to update its config file with the â€œsupportedRuntimeâ€ stuff mentioned above)â€¦and voilÃ ! It works a treat!</p>
<p>So if you canâ€™t get NUnit to work with VS 2005 - try to download the latest drop from <a href="http://www.nunit.org/download.html" target="_blank">http://www.nunit.org/download.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.makiwa.com/index.php/2005/08/11/nunit-and-visual-studio-2005-beta-2/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
