Install Page Type Builder and EPiAbstractions using Nu

Nu is a new package management system for .NET which basically wraps RubyGems. I think this is pretty cool and shows some great potential so I decided to give it a try and added gems for Page Type Builder and EPiAbstractions.

Getting Nu

To get started we need to first install Ruby using its very simple installer. Secondly we need to install Nu by typing “gem install nu” into the console (as in the DOS-style command line prompt). Once that’s done we can easily install gems using Nu. All in all the process takes about two minutes on a decent computer with broadband.

Using Nu

To use Nu we change directory to our solution directory and type “nu install <gemname>”. For instance, let’s say that we want to get Page Type Builder to a project located in C:\Projects\SomeProject. We could do that by typing in the following in a console:

C:\Users\Joel>cd c:\Projects\SomeProject

c:\Projects\SomeProject>nu install pagetypebuilder

folder-structure-after-installationThat would cause a new folder named “lib” (you can customize the default name) to be created in our solution folder if one didn’t already exist. In it we’d find three folders containing assemblies. One folder for Page Type Builder, and two other folder for Castle.Core and Castle.DynamicProxy2 , both of which are dependencies of Page Type Builder.

OK, so that’s nice but we could just as easily grab Page Type Builder from the it’s CodePlex site, right? We could, but let’s assume that we also wanted NHibernate and Structure Map. Using Nu all we’d have to do is write “nu install nhibernate” and “nu install structuremap” and we’d have the latest versions of those, including their dependencies, in our lib folder.

Learn more about Nu

I’m just playing around with Nu and wanted to post this to let you know that you can use it to get Page Type Builder and EPiAbstractions. To learn more about Nu be sure to visit the Google group and view this video.

PS. For updates about new posts, sites I find useful and the occasional rant you can follow me on Twitter. You are also most welcome to subscribe to the RSS-feed.

Comments

  1. Martin S.'s avatar

    Martin S. 1 years ago

    Neat stuff, I like :)

  2. Rob's avatar

    Rob 1 years ago

    Awesome! Great post! Glad to see you trying gems and nu out!

Follow me on Twitter

  1. @chraas You might want to use it for complex parts of the site and not use it for simple rendering pages. 2 days ago
  2. @chraas In theory more SOLID, but I'm not sure it's worth the price. 2 days ago
  3. @chraas Be warned that you're introducing one big chunk of complexity with EPiMVP :) 2 days ago
follow me

Latest comments

  1. Berra S wrote "Read your post at http://joelabrahamsson.com/entry/using-xfo..." on PageData objects not returned as typed when using Page Type Builder and FindPagesWithCriteria
  2. Linus wrote "1 up for behaviour being as close as expected as possible!" on A common problem with Page Type Builder and UniqueValuePerLanguage set to false
  3. Joel Abrahamsson wrote "Hi Hans, Could it be that you previously didn't have Page..." on Page Type Builder 2.0 released

About this site

This blog is built with EPiServer Community, EPiServer CMS, ASP.NET MVC and a bunch of other great products. The source code is available for download at the projects page, where you also can read more about this site and my other projects.

read more