EPiServer  /  CMS August 03, 2010

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.

Joel Abrahamsson

Joel Abrahamsson

I'm a passionate web developer and systems architect living in Stockholm, Sweden. I work as CTO for a large media site and enjoy developing with all technologies, especially .NET, Node.js, and ElasticSearch. Read more

Comments

comments powered by Disqus

My book

Want a structured way to learn EPiServer 7 development? Check out my book on Leanpub!

More about EPiServer CMS