<?xml version="1.0" encoding="UTF-8"?>
<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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ten Tonne Baby &#187; automation</title>
	<atom:link href="http://www.tentonnebaby.com/tag/automation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tentonnebaby.com</link>
	<description>Discussion on Web Technologies, Design and London</description>
	<lastBuildDate>Thu, 19 Jan 2012 09:33:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Enforcing coding standards when working with legacy code</title>
		<link>http://www.tentonnebaby.com/2010/10/17/enforcing-coding-standards-working-with-legacy-code/</link>
		<comments>http://www.tentonnebaby.com/2010/10/17/enforcing-coding-standards-working-with-legacy-code/#comments</comments>
		<pubDate>Sun, 17 Oct 2010 17:15:52 +0000</pubDate>
		<dc:creator>Oli</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Process]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[codingstandards]]></category>
		<category><![CDATA[resharper]]></category>
		<category><![CDATA[stylecop]]></category>

		<guid isPermaLink="false">http://www.tentonnebaby.com/2010/10/17/enforcing-coding-standard-working-with-legacy-code/</guid>
		<description><![CDATA[I’ve been thinking about the best way to start getting a consistent coding style with our team. Mostly I’ve worked on new projects and this is a relatively trivial thing to do by setting up StyleCop with an agreed set of rules, and hooking it up to analyse all source files as part of the [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been thinking about the best way to start getting a consistent coding style with our team. Mostly I’ve worked on new projects and this is a relatively trivial thing to do by setting up <a href="http://stylecop.codeplex.com/">StyleCop</a> with an agreed set of rules, and hooking it up to analyse all source files as part of the Continuous Build. Along with a culture based on sarcasm and peer abuse, this usually works out fine.</p>
<p>However in this instance I’m working with a large legacy codebase. Even with the best intentions people won’t stick to a convention unless it gets enforced, and based on the amount of code that doesn’t comply it isn’t very simple to start enforcing the standard.</p>
<p>The only solution I could really see was to swallow the pain and go and reformat all of the existing code, then start enforcing analysis on the projects that have been updated.</p>
<p>I don’t think this would have even been possible if it hadn’t been for <a href="http://www.jetbrains.com/resharper/">Resharper 5</a> and the <a href="http://stylecopforresharper.codeplex.com/">StyleCop for Resharper</a> plugin. I’ve become massively more productive since using Resharper a few weeks back and in this instance it’s been simply awesome.</p>
<h3></h3>
<h2>Code Cleanup</h2>
<p>Once Resharper has been configured with the StyleCop plugin so all coding style conventions are set up, you can run the code cleanup feature against a file or folder (Ctrl-Shift-Alt-F) which will reformat all existing code based on the configured rules. In my case this will typically reduce a file from around 300 violations to about 8. You can set up a profile to control exactly what does or does not get changed as part of this process.</p>
<h2>Cycle through code issues (F12)</h2>
<p>The next most useful feature is that StyleCop violations are treated as code issues by ReSharper. Hitting F12 repeatedly within a code file will jump to the next issue making it very simple to navigate around all violations and clean them up.</p>
<h2>Violation highlighting within editor</h2>
<p>The plugin will also highlight any style violation as you code, and provide tooltips and messages in the status bar to indicate what the violation was.</p>
<p><a href="http://www.tentonnebaby.com/wp-content/uploads/2010/10/image.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://www.tentonnebaby.com/wp-content/uploads/2010/10/image_thumb.png" width="562" height="257" /></a> </p>
</p>
<p>It will still take a while to finish updating the existing codebase, but I’m not even sure it would be feasible to attempt this without these tools.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tentonnebaby.com/2010/10/17/enforcing-coding-standards-working-with-legacy-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scripted Configuration of IIS7 on Vista with MSBuild</title>
		<link>http://www.tentonnebaby.com/2006/12/09/scripted-configuration-of-iis7-on-vista-with-msbuild/</link>
		<comments>http://www.tentonnebaby.com/2006/12/09/scripted-configuration-of-iis7-on-vista-with-msbuild/#comments</comments>
		<pubDate>Sat, 09 Dec 2006 14:18:18 +0000</pubDate>
		<dc:creator>Oli</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[msbuild]]></category>
		<category><![CDATA[vista]]></category>

		<guid isPermaLink="false">http://www.embeddedstream.com/2006/12/09/scripted-configuration-of-iis7-on-vista-with-msbuild/</guid>
		<description><![CDATA[I have an application that has an automated build script using msbuild which carries out all steps necessary to get the application configured and running on a local machine. Part of this process relates to configuration of IIS. I've just installed Vista, and initially ran into a few problems getting the build script to run sucessfully...]]></description>
			<content:encoded><![CDATA[<p>I have an application that has an automated build script using msbuild which carries out all steps necessary to get the application configured and running on a local machine. Part of this process relates to configuration of IIS.</p>
<p>I&#8217;ve just installed Vista, and initially ran into a few problems getting the build script to run sucessfully. IIS7 isn&#8217;t installed by default in Vista, so you need to go to Programs and Features manually and choose to install. When you do this, make sure you expand the IIS node in the treeview and check all of the features you require. By default the web server will install with a very limited range of features. The important one here is under II6 Management Compatability > IIS Metabase and II6 configuration compatibility.</p>
<p>If you&#8217;re using the <acronym title="Solution Build Framework><a xhref=">SBF</acronym> task library for msbuild, the tasks for configuration of IIS use the WMI interface for configuring the webserver. This will continue to work so long as the previous configuration is checked when installing IIS7.</p>
<p>The next problem you&#8217;ll face is to do with elevated permissions. When you carry out IIS configuration via the user interface, you&#8217;ll be prompted to elevate to admin permissions (the annoying dialog that pops up frequently). If you&#8217;re running a scripted build, this doesn&#8217;t occur so you&#8217;ll get an Access Denied exception when msbuild calls the IIS configuration tasks. Set up a shortcut for the command prompt (or use the VS.NET command prompt shortcut), right click on it, and choose &#8220;Run as Administrator&#8221;. This means that tasks which require administrative priveleges (but can&#8217;t ask for them via the UI) will complete successfully.</p>
<p>IIS7 comes with a command line utility which allows you to do things like create websites or virtual directories. Long term it may be simpler if the msbuild tasks shell out to this utility rather than using WMI, but for the time being they would need to be able to configure IIS6 and 7, so WMI is the best approach.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tentonnebaby.com/2006/12/09/scripted-configuration-of-iis7-on-vista-with-msbuild/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

