Archives
-
Moving a local Mercurial Repository to Bitbucket
I recently got a new laptop. Part of the migration process was to move a few local Mercurial repositories into Bitbucket. Since these are just “playing around” repositories, they’ll be private, but the beauty of Bitbucket is that you get unlimited private repositories. This allows me to keep all of my little pet projects “up in the cloud” and it’s one less thing to migrate the next time I get a new machine.
-
Changing the Default Install Location of an MSI
A few months ago, I had to tweak an MSI installer. It was installing into a specific directory (named the same as the application) underneath Program Files. Since the location of Program Files can change from machine to machine, the MSI has a special token you can use for Program Files (as well as for the application name). So the current value for “DefaultLocation” of the Application Folder was:
-
Setting up Windows Live Writer for Weblogs.asp.net
Once again, I’m on a new laptop and have forgotten how to set up Windows Live Writer to post to my Weblogs.asp.net account. Thanks to Bil Simser, I’m up and running now.
-
Using Lambdas for return values in Rhino.Mocks
In a recent StackOverflow question, someone showed some sample code they’d like to be able to use. The particular syntax they used isn’t supported by Rhino.Mocks, but it was an interesting idea that I thought could be easily implemented with an extension method.
-
Xml Serialization and the [Obsolete] Attribute
I learned something new today: Starting with .NET 3.5, the XmlSerializer no longer serializes properties that are marked with the Obsolete attribute. I can’t say that I really agree with this. Marking something Obsolete is supposed to be something for a developer to deal with in source code. Once an object is serialized to XML, it becomes data. I think using the Obsolete attribute as both a compiler flag as well as controlling XML serialization is a bad idea.