Category: Blogging

Getting AddThis.NET for BlogEngine.NET extension working!

There are currently a few hurdles to getting the very useful AddThis.net version 5 extension going on BlogEngine.net version 2.5 or later. I have consolidated the steps here.

There are a few ways of getting an extension added to a BlogEngine.Net project. I decided to use the NuGet approach. If you haven’t got this Visual Studio extension installed yet…do it now! see my earlier blog How to easily add open source libraries to net projects using NuGet).

First Configure NuGet

  1. Right-click on your web project and select ‘Manage NuGet Packages…’
  2. This will display the NuGet Manager. Click on the ‘Settings’ button at the bottom left.
  3. This opens the Visual Studio Option dialog. Make sure that ‘Package Sources’ is selected in the tree on the left.
  4. Enter the following and click the ‘Add’ button and then ‘OK’ on the Options dialog to close and save the new settings.
  5. You should now see the new BlogEngine.Net extensions library list under the ‘Online’ section. If necessary close the NuGet Manager and re-open it from the projects shortcut menu again.
  6. Simply select the extension you like and click ‘Install’. Nice an easy!

Second – Fix the project!

You will now try and rebuild your project to find that a whole load of failures occur.

This is easily fixed.

You will need to add the following reference to /App_Code/Extensions/AddThis.cs and pretty much every file under /App_Code/Extensions/BookmarkButtons, but the errors panel will give you the list of issues.

using BlogEngine.Core.Web.Extensions;

Then rebuild and voila…hopefully no errors!

2011 in review

The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.

Here’s an excerpt:

The concert hall at the Syndey Opera House holds 2,700 people. This blog was viewed about 9,000 times in 2011. If it were a concert at Sydney Opera House, it would take about 3 sold-out performances for that many people to see it.

Click here to see the complete report.

Using Windows Live Writer to publish blogs

This post has been written and publish using Windows Live Writer. It seems to work with quite a wide range of blog engines. This particular blog is based on BlogEngine.NET which works well with Live Writer. It also works with a Windows Live blogs, SharePoint blogs and I am sure a lot more.

image

Live writer has great facilities for making writing blogs extremely easy and allows publishing to multiple blogs too. It very cleverly downloads your skins, which give you the feel of writing on your blog page. Full spell checking and the usual good word processing facilities.

You can download Windows Live Writer from Microsoft at http://download.live.com/writer and a whole host of other free ‘Live’ software at http://download.live.com/