I was going through trying to figure out how to get the version number of our built assemblies from NAnt. We specify them using AssemblyInfo.cs, so the GetVersion tasks weren’t working for me. I found a post by Michael Flanakin which outlined his way of pulling the version number from a file.
That gave me an idea to just load the assembly dynamically and pull it out of the assembly info. Here’s what I’m using, suggestions are always welcome.
description="Get the version number from the assembly">