Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Here is a way to


check what version of boo your script is running in


Boo now has a BooVersion builtin:

No Format
print BooVersion //->

The old way to do that is to check the version of the Boo.Lang.dll assembly. We find the assembly by getting the Assembly property of the builtin List type contained in Boo.Lang.dll.

No Format
booversion = typeof(List).Assembly.GetName().Version
print booversion  //->

Checking if BooVersion is higher than certain version

To see if you are running in a specific version or higher, use code like this:

No Format
print BooVersion > System.Version(0,5,3)  //greater than boo 0.5.3

You can also see what version of .NET or Mono the runtime is using:

No Format
print typeof(List).Assembly.ImageRuntimeVersion //-> v1.1.4322