Ian, You are WAY beyond me. I am just learning to use the existing tasks, never mind write my own. :)
-----Original Message----- From: Ian MacLean [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 11:40 AM To: Bob Archer Cc: [EMAIL PROTECTED] Subject: Re: [Nant-users] get version from dll? If your dll is a .net assembly you could load it using Assembly.LoadFrom somthing like: assembly = Assembly.LoadFrom( AssemblyPath ); AssemblyName name = assembly.GetName(); version = name.Version.ToString(); should do the trick. Its a good candidate for a custom function. For extra points load the assembly in a new AppDomain so it doesn't pollute the nant process space. Ian Bob Archer wrote: >Hi All, > > > >I am creating a build script that deploys our last successful daily >build to our QA machine. > > > >How could I get the version/build number from a dll? Any ideas? I could >get the last build number from the build number file that my version >task uses, however, if that build failed it will not be the one in the >daily build area. > > > >Thanks, > >Bob > > > > > > -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id66&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users