<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1762444900247458347</id><updated>2011-04-21T14:28:50.258-07:00</updated><category term='visual studio'/><category term='Unit testing'/><category term='xml'/><category term='Tips and Tricks'/><category term='development'/><category term='coding'/><title type='text'>Accept no broken windows</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geall.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1762444900247458347.post-388878465857849877</id><published>2008-05-22T10:54:00.000-07:00</published><updated>2008-05-23T00:49:19.367-07:00</updated><title type='text'>Podcasts</title><content type='html'>I have recently developed the habit of listening to podcasts while I am not working as a way to try and get a little more learning time packed into a busy schedule (anyone else wishing for 36 hour days?). I have enjoyed quite a few and thought I'd share them.&lt;br /&gt;&lt;br /&gt;I have enjoyed listening to &lt;a href="http://www.joelonsoftware.com/"&gt;Joel&lt;/a&gt; and &lt;a href="http://www.codinghorror.com/blog"&gt;Jeff&lt;/a&gt; talking about, well anything that comes up while they set up a community based site for finding answers to programming questions, at:&lt;br /&gt;&lt;a href="http://blog.stackoverflow.com/index.php?feed=podcast"&gt;http://blog.stackoverflow.com/index.php?feed=podcast&lt;/a&gt;&lt;br /&gt;It's not overly technical, but it is interesting to listen to two people with very different approaches to development talk about a variety of subjects.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.pluralsight.com/blogs/craig"&gt;Craig Andera&lt;/a&gt; and &lt;a href="http://www.pluralsight.com/blogs/tewald"&gt;Tim Ewald&lt;/a&gt; have been podcasting occasionally and have some interesting insight on RESTful services and also interviewed Jon Lam about Iron Ruby. It doesn't have a feed that I can find or a tag so I have linked to the latest and there are links there to the previous podcasts:&lt;br /&gt;&lt;a href="http://www.pluralsight.com/blogs/craig/archive/2008/02/26/50317.aspx"&gt;http://www.pluralsight.com/blogs/craig/archive/2008/02/26/50317.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and Software Engineering Radio has many really good podcasts and interviews on a really broad range of subjects. Because it focuses more on software engineering, they also talk about a wide range of technologies:&lt;br /&gt;&lt;a href="http://www.se-radio.net/"&gt;http://www.se-radio.net/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you have any other suggestions please feel free to post them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1762444900247458347-388878465857849877?l=geall.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geall.blogspot.com/feeds/388878465857849877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1762444900247458347&amp;postID=388878465857849877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/388878465857849877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/388878465857849877'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/2008/05/podcasts.html' title='Podcasts'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1762444900247458347.post-2739340438227744726</id><published>2007-11-18T13:19:00.000-08:00</published><updated>2007-11-18T13:42:46.168-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><title type='text'>MSBuild features for vNext</title><content type='html'>I love &lt;a href="http://msdn2.microsoft.com/en-us/library/wea2sca5(VS.80).aspx"&gt;MSBuild&lt;/a&gt;, &lt;a href="http://nant.sourceforge.net/"&gt;Nant&lt;/a&gt; and &lt;a href="http://ccnet.thoughtworks.com/"&gt;CruiseControl.Net&lt;/a&gt; for the &lt;em&gt;complete process&lt;/em&gt; that they bring to building a solution. It is not often you get to contribute to the features that you would like to see next in one of these products.  The MSBuild team have got a blog post asking for a survey on which features you would like them to work on for vNext.&lt;br /&gt;&lt;br /&gt;Go &lt;a href="http://blogs.msdn.com/msbuild/archive/2007/11/17/how-would-you-spend-100-on-msbuild.aspx"&gt;here&lt;/a&gt; and spend your 100$(virtual) and make a difference.&lt;br /&gt;&lt;br /&gt;If you still need convincing that an automated build is important, Jeff Atwood has a good post on why &lt;a href="http://www.codinghorror.com/blog/archives/000988.html"&gt;F5 is not your build process&lt;/a&gt;. His reference to Hacknot's &lt;a href="http://www.hacknot.info/hacknot/action/showEntry?eid=97"&gt;if they come how will they build&lt;/a&gt; is too scarily close to the reality in far, far too many companies.&lt;br /&gt;&lt;br /&gt;I try to do something to improve the build process &lt;em&gt;everywhere&lt;/em&gt; I work. I believe we all should.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1762444900247458347-2739340438227744726?l=geall.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geall.blogspot.com/feeds/2739340438227744726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1762444900247458347&amp;postID=2739340438227744726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/2739340438227744726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/2739340438227744726'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/2007/11/msbuild-features-for-vnext.html' title='MSBuild features for vNext'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1762444900247458347.post-7386243575526098221</id><published>2007-10-31T08:04:00.000-07:00</published><updated>2008-03-19T11:42:21.245-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='Unit testing'/><title type='text'>Turning a c# project into a test project</title><content type='html'>&lt;p&gt;Ever added a C# project by accident when you meant to add a Test project? And only realized after writing a test, adding all the &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_0"&gt;references&lt;/span&gt; and not finding it in test manager?&lt;/p&gt;&lt;p&gt;I have; and I can never &lt;span class="blsp-spelling-corrected" id="SPELLING_ERROR_1"&gt;remember&lt;/span&gt; exactly how to fix it. I'll post the steps here so I can find it in the future, and maybe help other people with the same issue.&lt;/p&gt;&lt;p&gt;Test projects are aggregate projects (language and type) and these properties are set under an element in the project file called &lt;b&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;projecttypeguids&lt;/span&gt;&lt;/b&gt;.&lt;/p&gt;A test project looks a little like this:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;lt&lt;/span&gt;;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;propertygroup&lt;/span&gt;&amp;gt;&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;lt&lt;/span&gt;;configuration condition=" '$(Configuration)'== '' "&amp;gt;Debug&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;lt&lt;/span&gt;;/configuration&amp;gt;&lt;br /&gt;  ...&lt;br /&gt;  &lt;b&gt;&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;lt&lt;/span&gt;;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;projecttypeguids&lt;/span&gt;&amp;gt;{&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;guid&lt;/span&gt;};{&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;guid&lt;/span&gt;}&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;lt&lt;/span&gt;;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;projecttypeguids&lt;/span&gt;&amp;gt;&lt;/b&gt;&lt;br /&gt;&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;lt&lt;/span&gt;;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;propertygroup&lt;/span&gt;&amp;gt;&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;So: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;Right click on the project in question and choose "unload project". &lt;/li&gt;&lt;li&gt;Right click on the project again (it should now be grey and look something like [project name](unavailable) and select Edit [project name]. &lt;/li&gt;&lt;ol&gt;&lt;li&gt;for c# add:&lt;br /&gt;&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;lt&lt;/span&gt;;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;projecttypeguids&lt;/span&gt;&amp;gt;{3AC096D0-A1C2-E12C-1390-A8335801&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;FDAB&lt;/span&gt;};{FAE04EC0-301F-11D3-BF4B-00C04F79&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;EFBC&lt;/span&gt;}&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;lt&lt;/span&gt;;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;projecttypeguids&lt;/span&gt;&amp;gt;&lt;/li&gt;&lt;li&gt;for vb add:&lt;br /&gt;&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;lt&lt;/span&gt;;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;projecttypeguids&lt;/span&gt;&amp;gt;{3AC096D0-A1C2-E12C-1390-A8335801&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;FDAB&lt;/span&gt;};{F184B08F-C81C-45F6-A57F-5&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;ABD&lt;/span&gt;9991F28F}&amp;amp;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;lt&lt;/span&gt;;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_26"&gt;projecttypeguids&lt;/span&gt;&amp;gt; &lt;/li&gt;&lt;/ol&gt;&lt;li&gt;Right click once again and choose "Reload project"&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;Hope this helps someone out there.&lt;br /&gt;&lt;/p&gt;&lt;ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1762444900247458347-7386243575526098221?l=geall.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geall.blogspot.com/feeds/7386243575526098221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1762444900247458347&amp;postID=7386243575526098221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/7386243575526098221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/7386243575526098221'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/2007/10/turning-c-project-into-test-project.html' title='Turning a c# project into a test project'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1762444900247458347.post-329398862139415600</id><published>2007-06-03T04:05:00.000-07:00</published><updated>2007-06-04T06:59:02.802-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='coding'/><title type='text'>Background compilation needs an on/off switch</title><content type='html'>&lt;a href="http://www.codinghorror.com"&gt;Jeff Atwood&lt;/a&gt; has written a couple of entries recently about the &lt;a href="http://www.codinghorror.com/blog/archives/000860.html"&gt;C# Compilation tax&lt;/a&gt; and an article comparing &lt;a href="http://www.codinghorror.com/blog/archives/000864.html"&gt;Background Compilation and Background Spell Checking&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I find the background compilation in vb.net, as it is currently implemented, does not work well for me. I often write the main structure of my code(which doesn't compile) and then fill in the gaps. And vb.net tells me it's wrong; except it isn't wrong, I just haven't finished. &lt;a href="http://www.interact-sw.co.uk/iangblog"&gt;Ian&lt;/a&gt; finds this annoying as well and calls it &lt;a href="http://www.interact-sw.co.uk/iangblog/2007/05/15/language-choice"&gt;Background Irritation&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Although it is, in someways, comparable to background spell checking, I find it is as irritating as MS Word's AutoCorrect. AutoCorrect decides that what I just typed is not what I meant to type and changes it. This works fine for "teh" and other such errors, but often AutoCorrect changes TLAs and other words until the meaning of what I have just written changes completely. Worse, it does it without telling me, which is very frustrating. &lt;strong&gt;But&lt;/strong&gt;, I can switch it off when I know that I am writing something that it will cause me hassle with. In fact, now I think about it, I even use spell checking like I use the compiler. I write my text, I scan it to make sure that I think it's ok and then I ask the spell checker to double-check for me.&lt;br /&gt;&lt;br /&gt;So what is wrong with background compilation? I want it on when I am bugfixing. I want it off when I am writing from scratch. I want it to work like that in c#. I don't care if it is on by default. &lt;strong&gt;But if it doesn't have a switch I don't want it.&lt;/strong&gt; Therefore, for a tool to be useful to a good developer, it needs to be written as something that can be reached for when needed.&lt;br /&gt;&lt;br /&gt;And on the subject of the c# compilation tax, VB.Net's bacground compilation is not free. The MSDN article &lt;a href="http://msdn.microsoft.com/msdnmag/issues/05/06/AdvancedBasics/"&gt;Scaling Up: The Very Busy Background Compiler&lt;/a&gt; has some hints to help with large projects. But the idea of changing &lt;strong&gt;my code&lt;/strong&gt; or &lt;strong&gt;switching off other features&lt;/strong&gt; to help the performance of another feaure that I don't always want on, just seems to reinforce my perception that this &lt;strong&gt;needs a switch&lt;/strong&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1762444900247458347-329398862139415600?l=geall.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geall.blogspot.com/feeds/329398862139415600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1762444900247458347&amp;postID=329398862139415600' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/329398862139415600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/329398862139415600'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/2007/06/background-compilation-needs-onoff.html' title='Background compilation needs an on/off switch'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1762444900247458347.post-5140828662711870356</id><published>2007-04-07T09:31:00.000-07:00</published><updated>2007-04-07T11:50:27.937-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='Tips and Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='coding'/><title type='text'>Changing the default startup project preference</title><content type='html'>By default, visual studio sets the first project that you add to a solution as the startup project when you hit the Debug--&gt;Start (F5) or Debug--&gt;Start without debugging options (ctrl-F5).  This can be particularly annoying, especially when developing client server applications.  You may want to start the server first, then when it is listening, start the client.  You may want to start multiple projects at the same time.  Now these options are available by right clicking on the solution and selecting Properties, Common Properties--&gt;Startup Project. &lt;br /&gt;&lt;br /&gt;By default single startup project is selected and the project currently in the drop down is what visual studio will try and start.  I have recently acquired a taste for current selection (when you have are writing unit tests it is particularly handy for quickly running the current test project).&lt;br /&gt;&lt;br /&gt;You can change the default for this by navigating to tools--&gt;options--&gt;Environment--&gt;Projects and Solutions--&gt;Build and Run.  And there tick the check box "For new solutions use the currently selected project as the start up project".  If you have a large solution it may also be worth checking the "Only build startup projects and dependencies on run" in order to avoid building everything to run some low level test.&lt;br /&gt;&lt;br /&gt;Incidently, changing the default startup options doesn't just effect new solutions as the name suggests, it will effect any solution that doesn't have an options file (solutionname.suo).  This means that in a team environment, as long as everyone has their own solution option files, changing this option will not effect other users.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1762444900247458347-5140828662711870356?l=geall.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geall.blogspot.com/feeds/5140828662711870356/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1762444900247458347&amp;postID=5140828662711870356' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/5140828662711870356'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/5140828662711870356'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/2007/04/changing-default-startup-project.html' title='Changing the default startup project preference'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1762444900247458347.post-6831895648395592116</id><published>2007-04-04T06:17:00.000-07:00</published><updated>2007-04-04T13:46:09.778-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='xml'/><title type='text'>Xml attribute formatting</title><content type='html'>If you spend a lot of time formatting your xml documents with each attribute lined up on a seperate line, you will be pleased to know that there is an option in VS 2005 which allows you to do this automagically.&lt;br /&gt;&lt;br /&gt;Tools--&gt;Options--&gt;Text Editor--&gt;Xml--&gt;Formatting&lt;br /&gt;&lt;br /&gt;switch the radio button to "Align attributes each on a seperate line".&lt;br /&gt;&lt;br /&gt;then ctrl-k, ctrl-d your way to easy to read xml files.&lt;br /&gt;&lt;br /&gt;Most useful when something updates your xml for you, like updating a WCF service reference.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1762444900247458347-6831895648395592116?l=geall.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geall.blogspot.com/feeds/6831895648395592116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1762444900247458347&amp;postID=6831895648395592116' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/6831895648395592116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/6831895648395592116'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/2007/04/xml-attribute-formatting.html' title='Xml attribute formatting'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1762444900247458347.post-9003057641928883641</id><published>2007-04-03T12:16:00.000-07:00</published><updated>2007-04-07T10:27:25.468-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='coding'/><title type='text'>First Post</title><content type='html'>Well, it has been a long time in finally making it out the door, but today I realised that I may have something useful to contribute to the world after all. So here goes, first blog post (for me) ever!&lt;br /&gt;&lt;br /&gt;This week I have been on a &lt;a href="http://wcf.netfx3.com/"&gt;wcf&lt;/a&gt; course with &lt;a href="http://www.develop.com"&gt;DevelopMentor&lt;/a&gt;. Today when the instructor &lt;a href="http://www.leastprivilege.com/"&gt;Dominick Baier&lt;/a&gt;, was deleting for the &lt;a href="http://en.wikipedia.org/wiki/Umpteen"&gt;umpteenth&lt;/a&gt; time the "#region" tags (these are inserted when you use the smart tag in Visual studio 2005 to implement an interface) I smiled to myself, because this is one of my pet hates too. Then he said "does anyone know how to switch this off?", and I thought to myself "it can't be that hard". &lt;strike&gt;Well it is... and it isn't&lt;/strike&gt;&lt;br /&gt;&lt;br /&gt;Actually, it turns out my way is the really hard boring way. As &lt;a href="http://srstrong.blogspot.com/"&gt;Steve&lt;/a&gt; pointed out in the comments, if you go to tools--&gt;options--&gt;text editor--&gt;c#--&gt;advanced then there is a "Surround generated code with #region" checkbox. This is clearly the easy way! Thanks Steve&lt;br /&gt;&lt;br /&gt;If you are looking for how to change the default startup settings for a solution you need to head &lt;a href="http://geall.blogspot.com/2007/04/changing-default-startup-project.html"&gt;here.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strike&gt;If you know how to switch it off it is easy, if you don't, it is undocumented and google doesn't quite get the answer.&lt;br /&gt;&lt;br /&gt;I found a pointer in one of the comments &lt;a href="http://blogs.msdn.com/cyrusn/archive/2005/04/02/404924.aspx#405060"&gt;here&lt;/a&gt;. Needless to say the registry key is a red herring for the rtm version of Visual Studio 2005. In fact I couldn't even find the full path in the registry, which got me to thinking "where did they move all this config if it isn't here anymore"? Well one of the nice features of Visual Studio 2005 is that you can export your user settings. One of the things I remembered thinking, when I exported my settings was, "There is a lot more being exported than I see in the UI". Turns out that "ImplementInterface_InsertRegionTags" is &lt;strong&gt;&lt;em&gt;exported with a value of 1&lt;/em&gt;&lt;/strong&gt;. if you export your settings, set the value to 0 (zero) and (re)import the settings again, the "#region" tags disappear :)&lt;br /&gt;&lt;br /&gt;So the exact steps:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strike&gt;&lt;strike&gt;&lt;ol&gt;&lt;li&gt;Backup your current visual studio settings (follow step 1..9 but select everything in step 6)&lt;/li&gt;&lt;li&gt;Visual Studio --&gt; Tools Menu&lt;/li&gt;&lt;li&gt;Select Import and Export Settings...&lt;/li&gt;&lt;li&gt;Select the "Export selected environment settings" radio button (default)&lt;/li&gt;&lt;li&gt;Hit "Next"&lt;/li&gt;&lt;li&gt;Make sure you have "All Settings"--&gt;"Options"--&gt;"Text Editor"--&gt;"C# Editor" checked.&lt;/li&gt;&lt;li&gt;Hit "Next"&lt;/li&gt;&lt;li&gt;Select a file name and location&lt;/li&gt;&lt;li&gt;Hit "Finish"&lt;/li&gt;&lt;li&gt;Open the file in your pet xml editor&lt;/li&gt;&lt;li&gt;Search for "ImplementInterface_InsertRegionTags"&lt;/li&gt;&lt;li&gt;change the value to 0 (zero)&lt;/li&gt;&lt;li&gt;Save the change&lt;/li&gt;&lt;li&gt;Repeat steps 1 and 2&lt;/li&gt;&lt;li&gt;Select the "Import selected environment settings" radio button&lt;/li&gt;&lt;li&gt;Select "No, just import the new settings, overwrite my current settings"&lt;/li&gt;&lt;li&gt;Hit "Next"&lt;/li&gt;&lt;li&gt;Select or browse for the file that you made the changes to&lt;/li&gt;&lt;li&gt;Hit "Next"&lt;/li&gt;&lt;li&gt;Make sure you have "All Settings"--&gt;"Options"--&gt;"Text Editor"--&gt;"C# Editor" checked.&lt;/li&gt;&lt;li&gt;Hit "Finish"&lt;/li&gt;&lt;li&gt;Restart Visual Studio (optional I think, seemed to work without it)&lt;/li&gt;&lt;li&gt;Implement interfaces without regions :)&lt;/li&gt;&lt;/ol&gt;&lt;/strike&gt;&lt;p&gt;Note: This passed the "it works on my machine" test, but I make no guarantees.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1762444900247458347-9003057641928883641?l=geall.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://geall.blogspot.com/feeds/9003057641928883641/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1762444900247458347&amp;postID=9003057641928883641' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/9003057641928883641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1762444900247458347/posts/default/9003057641928883641'/><link rel='alternate' type='text/html' href='http://geall.blogspot.com/2007/04/first-post.html' title='First Post'/><author><name>James Geall</name><uri>http://www.blogger.com/profile/01687578733124838846</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry></feed>
