On Apr 12, 2005 12:14 AM, Dean Hiller <[EMAIL PROTECTED]> wrote:
> How do I supply the version info to csc so the version info ends up in the
> dll.  My autobuild supplies a version property that I just needed stuck into
> the dlls.

It seems to be more of a .NET Framework question than a NAnt specific one. 

The usual way of setting assembly-wide attributes (e.g. version) is a
separate file AssemblyInfo.cs (it is just a most popular name, not a
necessity) with attributes declarations:

[assembly: AssemblyVersion("0.1.1.1")]

Such a file is automatically created by Visual Studio .NET, for
instance. In NAnt, there is a special task that automates creation of
such a file. It's called <asminfo> and you can read more about it
here:

http://nant.sourceforge.net/release/latest/help/tasks/asminfo.html

Once you have this file generated for you, you should pass it to the
<csc> task as an ordinary C# source file.

Hope this helps!

-- 
Marcin Hoppe
http://hopson.blogspot.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to