<?xml version="1.0" encoding="ISO-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Blog by Joel Fjordén a.k.a. Will o Wisp</title>
	<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php" />
	<modified>2012-05-20T19:47:59Z</modified>
	<author>
		<name>Joel Fjordén</name>
	</author>
	<copyright>Copyright 2012, Joel Fjordén</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.4.8">SPHPBLOG</generator>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer 3.5 Released</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry120217-091930" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Cenito Software AB</b>, the company I now work for, has acquired the rights for Code Style Enforcer. This is very good news since it hopefully means that there will be more time for improvements and new features.<br /><br />Code Style Enforcer 3.5 is now here, and better than ever. A reworked and more flexible rule system is now in place, where it is possible to override rules for specific code types based on modifiers and visibility. For example, we might want some specific name rule for parameters marked as ref or out, or we require public visibility on static methods, but any visibility on instance methods.<br /><br />A new default name rule override has been added to the standard rules, namely that methods marked with the async keyword must have “Async” as suffix.<br /><br />Please give this new version a try and let me know if there are any issues with this new rule system, or any other issues for that matter.<br /><br />Be sure to use <b>DXCore 11.2.7</b> or later, since the new rule system is dependent on this release.<br /><br /><b>New Features</b><br /><br />• A redesigned and more flexible rule system supporting more granular name and visiblity rules based on not only the code type, but also on modifiers and visibility.<br /><br />• The separate rule configurator application has been removed and both local and global rule configurations can now be made within Visual Studio instead (Tools menu --&gt; Code Style Enforcer). This also solves the problem where the configurator application stopped working for each new release of DXCore.<br /><br /><b>Bug Fixes</b><br /><br />• Code rules can now be saved upon change even if rule files have become readonly, e.g. by using TFS in offline mode.<br /><br /><b>Breaking Changes</b><br /><br />• Due to changes in the code rule definitions, any old customized code rules will get backed up and the new default rules will instead be loaded, when opening the Global Code Rules Options dialog in Visual Studio or a previously Code Style Enforcer activated solution.<br /><br /><b>Download</b> <a href="http://joel.fjorden.se/download.php?file=CodeStyleEnforcer_3.5.17.msi" >Code Style Enforcer 3.5.17</a>]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry120217-091930</id>
		<issued>2012-02-17T00:00:00Z</issued>
		<modified>2012-02-17T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>SavePictureToCameraRoll throws InvalidOperationException in Windows Phone 7.1 (Mango)</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry110713-060945" />
		<content type="text/html" mode="escaped"><![CDATA[I recently upgraded my Windows Phone 7.0 project to 7.1 (Mango), by simply changing the Target Windows Phone Version setting in project properties.<br /><br />After that I wanted to utilize the SavePictureToCameraRoll feature, but this call always throw an InvalidOperationException simply stating, &quot;An unexpected error has occured.&quot;.<br /><br />Trying the same thing in a new project worked like a charm, so after some digging and file comparisons I found that the WMAppManifest.xml file is not &quot;upgraded&quot; when changing the target version to 7.1, and in order to be able to call this method the ID_CAP_ISV_CAMERA capability must be added.<br /><br />I hope this can save someone else&#039;s time!]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry110713-060945</id>
		<issued>2011-07-13T00:00:00Z</issued>
		<modified>2011-07-13T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer 3.0.72 Supporting DXCore 11.1.5 </title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry110710-201944" />
		<content type="text/html" mode="escaped"><![CDATA[Code Style Enforcer 3.0.72 rebuilt against new version of DXCore 11.1.5.<br /><br /><b>Download</b> <a href="http://joel.fjorden.se/download.php?file=CodeStyleEnforcer_3.0.72.msi" >Code Style Enforcer 3.0.72</a>]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry110710-201944</id>
		<issued>2011-07-10T00:00:00Z</issued>
		<modified>2011-07-10T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer 3.0.71 Supporting DXCore 10.2.9</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry110707-122916" />
		<content type="text/html" mode="escaped"><![CDATA[Code Style Enforcer 3.0.71 rebuilt against new version of DXCore 10.2.9.<br /><br /><b>Download</b> <a href="http://joel.fjorden.se/download.php?file=CodeStyleEnforcer_3.0.71.msi" >Code Style Enforcer 3.0.71</a>]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry110707-122916</id>
		<issued>2011-07-07T00:00:00Z</issued>
		<modified>2011-07-07T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Temporarily Disable Push in Mercurial (Hg)</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry110707-072634" />
		<content type="text/html" mode="escaped"><![CDATA[We use Mercurial and TeamCity as CI server and have been experiencing some problems lately when developers are pushing Hg change-sets to the server when a build is in progress. The problem is that TeamCity first pulls and updates before starting the build and then during the build some files are generated and/or updated, like help files and version files (but also the .hgtags file). Then as the final step in the build process when it’s time for TeamCity to commit and push the changes there will be a problem if a new push has been made since the start of the build process, i.e. we will get an error message like &quot;push creates new remote heads&quot;. <br /><br />One solution to this is of course to pull, update, merge (if needed) and commit, or the Hg Fetch extension, but what we really wanted was to somehow prevent developers to push change sets into the remote server repository during the build process of that specific project in TeamCity.<br /><br />After quite a lot of research on Google, I still couldn’t find any existing solution to this, so I started thinking about how we could manage this ourselves. The solution I came up with was to develop a very simple, but yet quite smart, REST service hosted on the same machine as the Hg repositories. The service exposes endpoints for EnablePush/DisablePush together with the name of the target repository. What the service implementation does is then to temporarily change the hgrc file in the repository to disable push, but not for everyone, since the automated build account used by TeamCity for Mercurial still needs Push access (allow_push = Mercurial). In order to enable Push again when the build is completed we then allow everyone with an account in the AD to Push again (allow_push = *).<br /><br />In order to use the REST service from TeamCity I discovered a very useful plugin called <a href="http://tcplugins.sourceforge.net/info/tcWebHooks" target="_blank" >tcWebHooks</a> that allows HTTP POST on TeamCity events like build started and build completed. Here is a <a href="http://joel.fjorden.se/images/tcWebHooks.png" target="_blank" >configuration example</a> of tcWebHooks for enabling/disabling Hg Push for a specific project and repository using the custom made RIA service.<br /><br />If you’re interested in the service install package or source code, let me know and I’ll send it to you!]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry110707-072634</id>
		<issued>2011-07-07T00:00:00Z</issued>
		<modified>2011-07-07T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer 3.0.51 Supporting DXCore 10.2.5</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry110307-211205" />
		<content type="text/html" mode="escaped"><![CDATA[Code Style Enforcer 3.0.51 rebuilt against new version of DXCore 10.2.5.<br /><br /><b>Download</b> <a href="http://joel.fjorden.se/download.php?file=CodeStyleEnforcer_3.0.51.msi" >Code Style Enforcer 3.0.51</a>]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry110307-211205</id>
		<issued>2011-03-07T00:00:00Z</issued>
		<modified>2011-03-07T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer 3.0.43 Supporting DXCore 10.2.3</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry101212-194531" />
		<content type="text/html" mode="escaped"><![CDATA[This is simply a rebuild of Code Style Enforcer version 3.0.32 in order to support the new version of DXCore 10.2.3.<br /><br /><b>Download</b> <a href="http://joel.fjorden.se/download.php?file=CodeStyleEnforcer_3.0.43.msi" >Code Style Enforcer 3.0.43</a>]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry101212-194531</id>
		<issued>2010-12-12T00:00:00Z</issued>
		<modified>2010-12-12T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer is Currently Incompatible with DXCore 2010 vol 2.3</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry101209-070453" />
		<content type="text/html" mode="escaped"><![CDATA[Today I upgraded from DXCore 2010 vol 1.8 to version 2010 vol 2.3 and then I got an error message as soon as I loaded a solution.<br /><br />There seems to be some incompatibility issue with this new version of DXCore, but a new version of Code Style Enforcer targeting DXCore 2010 vol 2.3 will be released within the next couple of days!<br /><br /><a href="javascript:openpopup('http://joel.fjorden.se/images/ExtensionException.jpg',496,244,false);"><img src="http://joel.fjorden.se/images/ExtensionException.jpg" width="484" height="238" border="0" alt="" /></a>]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry101209-070453</id>
		<issued>2010-12-09T00:00:00Z</issued>
		<modified>2010-12-09T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer v.Next</title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry101117-175156" />
		<content type="text/html" mode="escaped"><![CDATA[I thought I was going to enlighten you all of what&#039;s currently going on with Code Style Enforcer.<br /><br />Right now I&#039;m looking into a more flexible code rule system, where it should be possible to fine tune rules based on a combination of code type (field, method, etc.), visibility (public, private, etc.) and keyword (static, readonly, const, virtual, etc.). <br /><br />My thought is that it should also be possible to choose the current standard, and easier, configuration of name rules, but that it also should be possible to specify custom regular expressions, probably resulting in the loss of automatic name corrections or suggestions.<br /><br />The other relatively large implementation feature is to enable Code Style Enforcer to enforce the rules during MSBuild, either inside Visual Studio or through the command-line, e.g. automatic build server. Inside Visual Studio the violations will be added to the Error List tool window as either warnings or errors depending on configuration.<br /><br />I think and hope these features are something you all have use for, but please let me know if anything else comes to your mind. ]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry101117-175156</id>
		<issued>2010-11-17T00:00:00Z</issued>
		<modified>2010-11-17T00:00:00Z</modified>
	</entry>

Deprecated: Function split() is deprecated in /customers/a/f/c/fjorden.se/httpd.www/joel/scripts/sb_feed.php on line 268
	<entry>
		<title>Code Style Enforcer 3.0.32 Beta for Visual Studio 2010 </title>
		<link rel="alternate" type="text/html" href="http://joel.fjorden.se/index.php?entry=entry101021-204718" />
		<content type="text/html" mode="escaped"><![CDATA[Here is the latest and so far the greatest version of Code Style Enforcer for Visual Studio 2010, closing in on all the features from Code Style Enforcer for Visual Studio 2008, but with some improvements of course.<br /><br />Code Style Enforcer 3.0.32 requires the latest version of DXCore, that is 10.1.7.<br /><br /><b>New Features</b><br /><br />• New UI for configuring code rules, utilizing grids to get a uniform view for all different rule types while also making the configuration easier to extend for a future and more flexible rule system.<br /><br />• Code rules, for a specific solution, are now configurable from within Visual Studio 2010, through Code Style Enforcer -&gt; Properties from the solution node&#039;s context menu in the Solution Explorer.<br /><br />• Code Style Enforcer Configurator converted to a WPF application using the new rule configuration pages.<br /><br />• Possible to configure different interface implementation rules for properties, methods and events.<br /><br /><b>Bug Fixes</b><br /><br />• Probable prefix, in a name rule violation, was not removed from name when automatically suggesting a new name.<br /><br />• Loading the default rules did not work when the local rules were the same as the global rules, i.e. the global rules were linked into the solution.<br /><br /><b>Breaking Changes</b><br /><br />• Due to changes in the code rule definitions, any old customized code rules will get backed up and the default rules will instead be loaded, when opening Code Style Enforcer Configurator or a previously Code Style Enforcer activated solution.<br /><br /><b>Download</b> <a href="http://joel.fjorden.se/download.php?file=CodeStyleEnforcer_3.0.32.msi" >Code Style Enforcer 3.0.32</a>]]></content>
		<id>http://joel.fjorden.se/index.php?entry=entry101021-204718</id>
		<issued>2010-10-21T00:00:00Z</issued>
		<modified>2010-10-21T00:00:00Z</modified>
	</entry>
</feed>

