you have to increment the version number yourself.  the compiler doesn't
do it on its own.
there is a task in nantcontrib that helps do that 

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/nantcontrib/NAntContrib/s
rc/Tasks/

look for AssemblyInfoTask.cs

you can download the latest builds for nantcontrib from 
http://nantcontrib.sourceforge.net/

personally, i have found i had to create custom code to control the
version number in a way that made sense to me.
once i have the version number for the build, i apply it to every
project :

        <property name="file.assy" value="${projpath}\assemblyinfo.cs"
/>
        <asminfo
          path=           "${file.assy}"
          copyright=      "${App.Copyright}" 
          description=    "${App.Description}"
          name=           "${projname}"
          version=        "${Version.Name}.*"
          trademark=      "${App.Trademark}"
          productname=    "${App.Product}"
          companyname=    "${App.Company}"
          config=         "${Config.Target}"
          />
  
sorry, i can't say more at this point.
good luck.

/jean



> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Gokul Karthik
> Sent: Monday, June 16, 2003 18:13
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [Nant-users] (no subject)
> 
> 
> 
> 
> 
> I need to specify the version number of the C # .NET assembly I am 
> compiling. By default, the version number is 0.0.0.0. As I 
> run the daily 
> build, I want the version number to be incremented in the 
> version property 
> of the project also.
> 
> My csc task looks like this :
> 
>    <csc target="library" debug="${debug}" 
> output="${bin.dir}\typemap.dll" 
> doc="${xml.dir}\typemap.xml">
>             <sources failonempty="true">
>                  <excludes name="**/**/AssemblyInfo.cs" />
>                  <includes name="*.cs" />
>             </sources>
> 
> 
> 
> 
> From: "Jean Rajotte" <[EMAIL PROTECTED]>
> Reply-To: <[EMAIL PROTECTED]>
> To: "'Gokul Karthik'" <[EMAIL PROTECTED]>, 
> <[EMAIL PROTECTED]>
> Subject: RE: [Nant-users] (no subject)
> Date: Mon, 16 Jun 2003 17:57:57 -0400
> 
> i don't understand the question, gokul.
> are you talking about the version of the .net framework?
> the assembly version for your project?
> 
> could you please provide an example of the task and the 
> output you're getting? /jean
> 
>  > -----Original Message-----
>  > From: [EMAIL PROTECTED]
>  > [mailto:[EMAIL PROTECTED] On Behalf 
> Of  > Gokul Karthik  > Sent: Monday, June 16, 2003 17:51  > 
> To: [EMAIL PROTECTED]  > Subject: [Nant-users] 
> (no subject)  >  >  >  >  > Hello,  >  > When I compile a  C 
> # .NET assembly, I need to specify the version  > attribute. 
> I could not find an attribute in csc task. Point  > me in the 
> right  > direction.  >  > Thanks,  > Gokul  >  > 
> _________________________________________________________________
>  > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>  > http://join.msn.com/?page=features/virus
>  >
>  >
>  >
>  > -------------------------------------------------------
>  > This SF.Net email is sponsored by: INetU
>  > Attention Web Developers & Consultants: Become An INetU
>  > Hosting Partner. Refer Dedicated Servers. We Manage Them. 
> You  > Get 10% Monthly Commission! INetU Dedicated Managed 
> Hosting  > http://www.inetu.net/partner/index.php
>  >
>  > _______________________________________________
>  > Nant-users mailing list
>  > [EMAIL PROTECTED]
>  > https://lists.sourceforge.net/lists/listinfo/n> ant-users
>  >
> 
> _________________________________________________________________
> Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner. Refer Dedicated Servers. We Manage Them. You 
> Get 10% Monthly Commission! INetU Dedicated Managed Hosting 
> http://www.inetu.net/partner/index.php
> 
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/n> ant-users
> 



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to