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_id=3149&alloc_id=8166&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users