RE: [nant-dev] Version task

2002-04-22 Thread Smith, Eric V.
uot;static" properties we discussed recently then that would seem a logical place to put the extension to regex mapping. Eric. > -Original Message- > From: Brad Wilson [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 9:22 PM > To: NAnt Developers > Subjec

Re: [nant-dev] Version task

2002-04-22 Thread Brad Wilson
Smith, Eric V. wrote: > It's beginning to sound like my VersionTask isn't what people are after It's what I want, and planned on writing. :) Brad -- Read my web log at http://www.quality.nu/dotnetguy/ ___ Nant-developers mailing list [EMAIL PROTECT

RE: [nant-dev] Version task

2002-04-22 Thread Smith, Eric V.
t in the Nant source. Thanks for all the valuable input. Eric. > -Original Message- > From: Tomas Restrepo [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 8:20 PM > To: [EMAIL PROTECTED] > Subject: Re: [nant-dev] Version task > > > Eric, > > &

Re: [nant-dev] Version task

2002-04-22 Thread nant
> Can I ask one thing? Why bother modifying > AssemblyInfo.cs anyway? What I'd do is just > nuke that file from my builds. Instead, just > have some other file (say, a .txt) containing > the latest build number used, then, from the > buildfile, generate a .cs with just the version > attribute

Re: [nant-dev] Version task

2002-04-22 Thread Tomas Restrepo
Eric, > Jeff Richter in "Applied Microsoft .Net Framework Programming" argues > against using the asterisk. I'm not sure I buy his argument, but I > respect his opinion. In addition, I like having a deterministic nightly > build number, or more often if I build releases multiple times per day.

RE: [nant-dev] Version task

2002-04-22 Thread Andy Smith
: [EMAIL PROTECTED] Subject: RE: [nant-dev] Version task > He suggested loading the file in with the > CodeDom Easier said than done. If you look at the CodeDomProvider abstract class, you'll notice a CreateParser method. For all the CodeDom providers that MS ships, they all retur

RE: [nant-dev] Version task

2002-04-22 Thread nant
> He suggested loading the file in with the > CodeDom Easier said than done. If you look at the CodeDomProvider abstract class, you'll notice a CreateParser method. For all the CodeDom providers that MS ships, they all return NULL. Of course, I'm crossing my fingers that Andy knows a better

RE: [nant-dev] Version task

2002-04-22 Thread Smith, Eric V.
Page 61, inside the box. > -Original Message- > From: Andy Smith [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 22, 2002 4:56 PM > To: Smith, Eric V.; [EMAIL PROTECTED] > Subject: RE: [nant-dev] Version task > > > I have that book, but don't remember re

RE: [nant-dev] Version task

2002-04-22 Thread Andy Smith
ROTECTED]] > Sent: Monday, April 22, 2002 4:11 PM > To: [EMAIL PROTECTED] > Subject: RE: [nant-dev] Version task > > > I don't understand why you need to write out the version > number again... > > the whole asterix thing in the version number is designed to > a

RE: [nant-dev] Version task

2002-04-22 Thread Smith, Eric V.
> Sent: Monday, April 22, 2002 4:11 PM > To: [EMAIL PROTECTED] > Subject: RE: [nant-dev] Version task > > > I don't understand why you need to write out the version > number again... > > the whole asterix thing in the version number is designed to > auto-i

RE: [nant-dev] Version task

2002-04-22 Thread Andy Smith
ric V. [mailto:[EMAIL PROTECTED]] Sent: Monday, April 22, 2002 2:07 PM To: [EMAIL PROTECTED] Subject: RE: [nant-dev] Version task Andy Smith had an interesting comment in a private email. He suggested loading the file in with the CodeDom and then retrieving the assembly level attribute, and

Re: [nant-dev] Version task

2002-04-22 Thread Bernard Vander Beken
You could make the filename configurable and use AssemblyInfo.cs as the default value. Bernard - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 22, 2002 10:02 PM Subject: RE: [nant-dev] Version task > > Yes but remember that

RE: [nant-dev] Version task

2002-04-22 Thread Smith, Eric V.
t; Sent: Monday, April 22, 2002 3:34 PM > To: Smith, Eric V.; [EMAIL PROTECTED] > Subject: RE: [nant-dev] Version task > > > Yeah, I think making the filename required is good. Or > require a language attribute (it could be an enum). Then you > could set the default filename ba

RE: [nant-dev] Version task

2002-04-22 Thread robert . jefferies
[EMAIL PROTECTED]cc: eforge.net

RE: [nant-dev] Version task

2002-04-22 Thread Scott Hernandez
[EMAIL PROTECTED] [mailto:nant-developers- > [EMAIL PROTECTED]] On Behalf Of Smith, Eric V. > Sent: Monday, April 22, 2002 10:36 AM > To: [EMAIL PROTECTED] > Subject: RE: [nant-dev] Version task > > It currently only works on AssemblyInfo.cs (or whatever file name you > specify

RE: [nant-dev] Version task

2002-04-22 Thread Smith, Eric V.
ile, if so, does it work > for vb.net and jscript.net also? > > > -Original Message- > > From: [EMAIL PROTECTED] > [mailto:nant-developers- > > [EMAIL PROTECTED]] On Behalf Of Smith, Eric V. > > Sent: Sunday, April 21, 2002 5:28 PM > > To: [EMAIL PROTECTED

RE: [nant-dev] Version task

2002-04-22 Thread Scott Hernandez
[EMAIL PROTECTED] [mailto:nant-developers- > [EMAIL PROTECTED]] On Behalf Of Smith, Eric V. > Sent: Sunday, April 21, 2002 5:28 PM > To: [EMAIL PROTECTED] > Subject: [nant-dev] Version task > > I have created a task (VersionTask) that reads the AssemblyVersion > attribute from th

[nant-dev] Version task

2002-04-21 Thread Smith, Eric V.
I have created a task (VersionTask) that reads the AssemblyVersion attribute from the AssemblyInfo.cs file. It handles all of the valid version number formats: 1 1.2 1.2.* 1.2.3 1.2.3.* 1.2.3.4 It can set a nant property (Project.Properties) to any prefix of this version number, that is it can s